diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy b/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy index 7ce46ecf0b..9edefbd9a2 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/service/Services.groovy @@ -45,4 +45,9 @@ log.each { rs, value -> serviceList.add(service); } -context.services = serviceList; +sortField = parameters.sortField; +if (sortField) { + context.services = UtilMisc.sortMaps(serviceList, UtilMisc.toList(sortField)); +} else { + context.services = serviceList; +} diff --git a/framework/webtools/webapp/webtools/service/services.ftl b/framework/webtools/webapp/webtools/service/services.ftl deleted file mode 100644 index 97ef7856cc..0000000000 --- a/framework/webtools/webapp/webtools/service/services.ftl +++ /dev/null @@ -1,50 +0,0 @@ -<#-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> - -
| ${uiLabelMap.WebtoolsServiceName} | -${uiLabelMap.WebtoolsDispatcherName} | -${uiLabelMap.WebtoolsMode} | -${uiLabelMap.CommonStartDateTime} | -${uiLabelMap.CommonEndDateTime} | -
| ${service.serviceName?if_exists} | -${service.localName?if_exists} | -${service.modeStr?default("[none]")} | -${service.startTime?if_exists} | -${service.endTime?default("[running]")} | -