mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 09:25:11 +02: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();
|
var selectedIDs = getSelectedConnectionsUserNames();
|
||||||
connectionsUserModelData.sort(function (a, b) {
|
connectionsUserModelData.sort(function (a, b) {
|
||||||
var aValue = a[sortProperty].toString().toLowerCase(), bValue = b[sortProperty].toString().toLowerCase();
|
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) {
|
switch (true) {
|
||||||
case (aValue < bValue): return before;
|
case (aValue < bValue): return before;
|
||||||
case (aValue > bValue): return after;
|
case (aValue > bValue): return after;
|
||||||
|
|
Loading…
Reference in a new issue