sort and clear deps
idea fix