findMdLocationBySearchParam is a method that delegate search to a Manager/service object implemented with spring/hibernate to fetch. But like I said before it only querys data the fist time. After that all sorting occurs in memory ..