Sometimes cn_sort might be incorrect (wrong configuration when loading the items) or even empty (migration issue). It would be nice to have a script that allowed recalculating and updating the cn_sort field in items. This would be a maintenance script.