Refactors name sorting and provides extended sorting for api stages and moves API listings