java sort project practice