Sorting with constraints. - A. Manas (CoRR, 2025)