added 4th sort

search for minimums