this will only work on fields that are named order[]
Are you sure this is the best approach?

I have checked both joomla 2.5 and 3.x are using order[] as a field for sorting, so imo this could work, but what is wrong with the old method?