mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 02:58:12 +08:00
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
// jshint esversion: 6
|
|
export const alphabeticallySortedValues = values =>
|
|
Object.keys(values).sort((a, b) => {
|
|
const textA = a.toUpperCase();
|
|
const textB = b.toUpperCase();
|
|
return textA < textB ? -1 : textA > textB ? 1 : 0;
|
|
});
|