finally fixed the sorting thing in sir and pag tables, by just removing the order part in fetch_sirs and fetch_pags