sort extracted data