(layer_name)
return sort_id
* Returns the cartographic sort id for the specified layer.
         * This sort id is the position of the layer in the omt_layer_ordering collection.
         * If the layer isn't present in the collection,
            the sort id wil be 999 and therefore the layer will be added at the bottom.
        :param layer_name:
        :return:
* Returns the cartographic sort id for the specified layer.
         * This sort id is the position of the layer in the omt_layer_ordering collection.
         * If the layer isn't present in the collection,
            the sort id wil be 999 and therefore the layer will be added at the bottom.
        :param layer_name:
        :return:
* Returns the cartographic sort id for the specified layer . * This sort id is the position of the layer in the omt_layer_ordering collection . * If the layer isn t present in the collection the sort id wil be 999 and therefore the layer will be added at the bottom . : param layer_name : : return :
def _get_omt_layer_sort_id(layer_name):
        """
         * Returns the cartographic sort id for the specified layer.
         * This sort id is the position of the layer in the omt_layer_ordering collection.
         * If the layer isn't present in the collection,
            the sort id wil be 999 and therefore the layer will be added at the bottom.
        :param layer_name:
        :return:
        """

        sort_id = 999
        if layer_name in omt_layer_ordering:
            sort_id = omt_layer_ordering.index(layer_name)
        return sort_id
def _get_omt_layer_sort_id ( layer_name ) : sort_id = 999 if layer_name in omt_layer_ordering : sort_id = omt_layer_ordering . index ( layer_name ) return sort_id