Added format.
Added function that sorts the hashmap before put it into the spinners.