Skip to content

Commit cf8611d

Browse files
Avoid sortBy()
Co-authored-by: Julian Gonggrijp <j.gonggrijp@uu.nl>
1 parent e4a44b9 commit cf8611d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/vre/utils/tabulator-utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ const standardColumns = _.mapValues({
182182
function getUniqueValues(cell) {
183183
var cells = cell.getColumn().getCells();
184184
var data = _.map(cells, c => c.getValue() && c.getValue().split(', '));
185-
data = _.chain(data).flatten().filter(_.negate(_.isEmpty)).uniq().sortBy().value();
185+
// TODO: replace sortedUniq() by uniq(true) when switching to Underscore
186+
data = _.chain(data).flatten().filter(_.negate(_.isEmpty)).sort().sortedUniq().value();
186187
data.unshift({
187188
label: '(all)',
188189
value: '',

0 commit comments

Comments
 (0)