Refactored a bit
ArrayAdapter and sorting