mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 17:38:11 +08:00
8 lines
234 B
JavaScript
8 lines
234 B
JavaScript
export const alphabeticallySortedValues = (values) => {
|
|
return Object.keys(values).sort((a, b) => {
|
|
var textA = a.toUpperCase();
|
|
var textB = b.toUpperCase();
|
|
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
|
|
})
|
|
}
|