array.sort should return 1, 0 or -1 as per spec. It's safer this way.