*implemented sorting of refs -> newest first