Sort output of apps command