Update src/sorting.f90

By supplying the dim to minloc it will return a scalar, not a length one vector.  This should be cleaner.  I am not sure how most compliers handle length one vectors, but I am guessing  this will save the time of allocating to a vector and pulling from it.