require json and sort dependencies by name for list command