sort for consistent results