Main step sort order

main step sort order is now saved on creation