DEPLOYED - fixed sort