Sorts items in commandline to avoid rebuilds.