This is considered a hack.
You would have to reapply the edits on all new sites and every time you update.
Furthermore it mght have unexpected results.
SInce the sorting options work fine by default I would suggest that you look for an extension at the JED or
getk2.org/extend that will allow you to update without losing any changes.