Added a secondary sort method because of a glitch in the API not sorting correctly.