Sort user handles as lowercase.
This commit is contained in:
parent
f1360de3c4
commit
5cb176299a
@ -785,7 +785,7 @@ pub async fn thread_system(mut app:App, bus:Bus<protocol::QRPacket>)
|
|||||||
|
|
||||||
response.records.sort_by(|a, b| {
|
response.records.sort_by(|a, b| {
|
||||||
b.is_online.cmp(&a.is_online)
|
b.is_online.cmp(&a.is_online)
|
||||||
.then(a.handle.cmp(&b.handle))
|
.then(a.handle.to_lowercase().cmp(&b.handle.to_lowercase()))
|
||||||
});
|
});
|
||||||
|
|
||||||
Some(QRPacket::new(qr.id, QRPacketData::RUserList(response)))
|
Some(QRPacket::new(qr.id, QRPacketData::RUserList(response)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user