def _get_sorted_cond_keys(self, keys_list):
        """
        This function returns only the elements starting with
        'analysisservice-' in 'keys_list'. The returned list is sorted by the
        index appended to the end of each element
        """
        # The names can be found in reflexrulewidget.pt inside the
        # conditionscontainer div.
        cond_list = []
        for key in keys_list:
            if key.startswith('analysisservice-'):
                cond_list.append(key)
        cond_list.sort()
        return cond_list