(2.9) Make NiceSort treat integers well
authorHrvoje Ribicic <riba@google.com>
Tue, 25 Feb 2014 16:25:29 +0000 (16:25 +0000)
committerDimitris Aragiorgis <dimara@grnet.gr>
Thu, 27 Mar 2014 08:01:09 +0000 (10:01 +0200)
commit8362c869e2e803522c74924c5dba0fe8b1cb8843
tree72ef47137b4b007d2a12dd3b329a73263467588f
parentbd338faba2653a46b88b1e5bc659eef4914b03ed
(2.9) Make NiceSort treat integers well

NiceSort is invoked on arrays that may contain strings, but in other
situations can contain ints as well. As this surprisingly makes sense,
add a tiny modification to make NiceSort work in these conditions.

Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Jose A. Lopes <jabolopes@google.com>
lib/utils/algo.py