updated specs and added ordering to results