Arrays sort and JFrame