Hello
Please navigate Products -> Attributes change the Default sort order to “Custom Ordering”. Go back to the Attributes page & click on “Configure items” for Size attribute. Then go to the table of values. You will be able to drag and drop the items in any order.
With best regards
Brian Johnson