Added support to control the ordering via the command line