Teting on both Ubunt&debian 64. Added sort method on array to ensure correct order.