[theplatform] Use centralized sorting