def compare_path_file_name(file_path_a, file_path_b):
    """
    Custom compare function which compares full absolute file paths just using
    the file name.

    This function can be used with ``sorted`` or ``list.sort`` function.
    """
    file_name_a = os.path.basename(file_path_a)
    file_name_b = os.path.basename(file_path_b)

    return file_name_b < file_name_a
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/misc.py/compare_path_file_name/swapped operands of `<`