#4579 custom sort script. detect and apply. seems good