Proper sorting by servers names. Fixing #12.
This commit is contained in:
parent
4516abb916
commit
7e6b698c1c
@ -2,6 +2,8 @@
|
||||
|
||||
[![Join the chat at https://gitter.im/urtrator/Lobby](https://badges.gitter.im/urtrator/Lobby.svg)](https://gitter.im/urtrator/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
Chat on Matrix: #gitter_urtrator=2Flobby:matrix.org (Gitter bridge).
|
||||
|
||||
![Main Window](/doc/screenshots/0.1-main_window.png)
|
||||
|
||||
URTrator is a desktop application that should (eventually) replace
|
||||
|
@ -25,8 +25,8 @@ func (m *MainWindow) sortServersByName(model *gtk.TreeModel, a *gtk.TreeIter, b
|
||||
return 0
|
||||
}
|
||||
|
||||
name1 := ctx.Colorizer.ClearFromMarkup(name1_raw.GetString())
|
||||
name2 := ctx.Colorizer.ClearFromMarkup(name2_raw.GetString())
|
||||
name1 := strings.ToLower(ctx.Colorizer.ClearFromMarkup(name1_raw.GetString()))
|
||||
name2 := strings.ToLower(ctx.Colorizer.ClearFromMarkup(name2_raw.GetString()))
|
||||
|
||||
if name1 < name2 {
|
||||
return -1
|
||||
|
Reference in New Issue
Block a user