Delete by id, delete by endpoint, fixed sorting

#34, #33, #32