LP#1790169: ensure that the sort priority actually gets saved