Fixed the sorting functionality in the sealed UI.