Sort user handles as lowercase.

This commit is contained in:
yukirij 2024-10-01 12:07:48 -07:00
parent f1360de3c4
commit 5cb176299a

View File

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