tried work with array's sort. Implemented interface comparable