implemented orderById, relates to #17