swaps inputs if reverse sorting
swaps inputs if reverse sorting

UM-USElab/gradecraft-development,mkoon/gradecraft-development,UM-USElab/gradecraft-development,UM-USElab/gradecraft-development,UM-USElab/gradecraft-development,mkoon/gradecraft-development,mkoon/gradecraft-development