offline people sort change

This commit is contained in:
David Kelly 2017-04-12 08:24:46 -07:00
parent d5f5192954
commit 9376ac646f

View file

@ -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;