Proper sorting by servers names. Fixing #12.

This commit is contained in:
Stanislav Nikitin 2016-11-22 18:23:43 +05:00
parent 4516abb916
commit 7e6b698c1c
2 changed files with 4 additions and 2 deletions

View File

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

View File

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