mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
offline people sort change
This commit is contained in:
parent
d5f5192954
commit
9376ac646f
1 changed files with 7 additions and 0 deletions
|
@ -1401,6 +1401,13 @@ Rectangle {
|
|||
var selectedIDs = getSelectedConnectionsUserNames();
|
||||
connectionsUserModelData.sort(function (a, b) {
|
||||
var aValue = a[sortProperty].toString().toLowerCase(), bValue = b[sortProperty].toString().toLowerCase();
|
||||
if (!aValue && !bValue) {
|
||||
return 0;
|
||||
} else if (!aValue) {
|
||||
return after;
|
||||
} else if (!bValue) {
|
||||
return before
|
||||
}
|
||||
switch (true) {
|
||||
case (aValue < bValue): return before;
|
||||
case (aValue > bValue): return after;
|
||||
|
|
Loading…
Reference in a new issue