Adding sort to fix getMedian

changing the estimates list to always be sorted so getMedian works correctly

Authors: lhunker, dbtrue