Make niceSort a wrapper over niceSortKey id
authorIustin Pop <iustin@google.com>
Mon, 14 Jan 2013 14:16:28 +0000 (15:16 +0100)
committerIustin Pop <iustin@google.com>
Tue, 15 Jan 2013 14:27:54 +0000 (15:27 +0100)
commita7f0953a4f4855f04797804cf3083c4b56d838c3
tree47e084c1441263bfa796c993cae5cc37aa44ff71
parent96b2830733376f7e9e752b5ff936e48fea0a0123
Make niceSort a wrapper over niceSortKey id

Currently, niceSort behaves differently than niceSortKey in cases
where the parsed groups are equal but the original not, as it uses
both members of the tuple as opposed to just the first one. Both
niceSortKey and the Python code use only the first one, so in corner
cases we can have different behaviour of these functions.

To rectify this, we change niceSort to be a simple wrapper over
"niceSortKey id", so that we get consistent behaviour.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
src/Ganeti/Utils.hs