From 7e6b698c1c0fa2943ecd05be2fd7d42d119dc31a Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 22 Nov 2016 18:23:43 +0500 Subject: [PATCH] Proper sorting by servers names. Fixing #12. --- README.md | 2 ++ ui/mainwindow_servers_sorting.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20cb507..67b6879 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ui/mainwindow_servers_sorting.go b/ui/mainwindow_servers_sorting.go index b2e7cbd..223ccfe 100644 --- a/ui/mainwindow_servers_sorting.go +++ b/ui/mainwindow_servers_sorting.go @@ -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