sort deps