sort build depends