convert entries into array to allow sorting.
entries turned into array