Fix order in get_entries()