sort simple search by codigo, fix pagination and keyword bug