You get a list / array of X objects in the given order.
You create a new list / Y array of such objects using the method.
Y will have the order with which you created it (usually you just saved the X-order). No reordering occurs.
In addition, the lexicographic ordering of byte [] does not make sense.
source share