always sort by title after sorting by initial input
This commit is contained in:
parent
914ad2c204
commit
d16d5dcd7c
@ -70,7 +70,9 @@
|
|||||||
}
|
}
|
||||||
sortState.sortBy = sortField;
|
sortState.sortBy = sortField;
|
||||||
}
|
}
|
||||||
data = _.orderBy(data, function(o) { return o[sortState.sortBy].toLowerCase(); }, sortState.sortOrder);
|
data = _.orderBy(data, function(o) {
|
||||||
|
return o[sortState.sortBy].toLowerCase() + o["sortTitle"].toLowerCase();
|
||||||
|
}, sortState.sortOrder);
|
||||||
|
|
||||||
$.each(data, function(key, value) {
|
$.each(data, function(key, value) {
|
||||||
value.rowNumber = key; // re-key for new sort
|
value.rowNumber = key; // re-key for new sort
|
||||||
|
Loading…
Reference in New Issue
Block a user