Module: check_mk
Branch: master
Commit: 353735ee44a12c48a42f7de2488972a139a3e513
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=353735ee44a12c…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jul 12 14:21:32 2017 +0200
4969 FIX Service discovery view: Fixed sorting service descriptions
Service descriptions beginning with capitals were sorted primarily
followed by descriptions beginning with small letters.
Change-Id: I12dad7fc8097dc9f6c2b6ee3e41f426150651c8f
---
.werks/4969 | 12 ++++++++++++
web/htdocs/wato.py | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4969 b/.werks/4969
new file mode 100644
index 0000000..87f10f3
--- /dev/null
+++ b/.werks/4969
@@ -0,0 +1,12 @@
+Title: Service discovery view: Fixed sorting service descriptions
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1499861224
+
+Service descriptions beginning with capitals were sorted primarily
+followed by descriptions beginning with small letters.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f81de23..4dd6177 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3091,7 +3091,7 @@ class ModeDiscovery(WatoMode):
if show_bulk_actions and len(checks) > 10:
self._bulk_actions(check_source, collect_headers=False)
- for check in sorted(checks, key=lambda c: c[6]):
+ for check in sorted(checks, key=lambda c: c[6].lower()):
self._check_row(check, show_bulk_actions)
if show_bulk_actions: