mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-25 16:18:22 -04:00
Qml app: made contact sorting case insensitive
This commit is contained in:
parent
97a0e00089
commit
e59366d0fd
@ -45,7 +45,9 @@ function cntcmp(left, right, searchText)
|
||||
var lcon = left.is_contact
|
||||
var rcon = right.is_contact
|
||||
if( lcon !== rcon ) return rcon - lcon
|
||||
if(left.name !== right.name) return strcmp(left.name, right.name)
|
||||
var lname = left.name.toLowerCase()
|
||||
var rname = right.name.toLowerCase()
|
||||
if(lname !== rname) return strcmp(lname, rname)
|
||||
return strcmp(left.gxs_id, right.gxs_id)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user