Function SortText

  • SortText

    Type Parameters

    • T extends string

    Parameters

    • str: T | T[]

      a String or a list of strings

    Returns T[]

    Takes a piece of text in Persian which contains several lines (separated by the newline character), and sorts the lines alphabetically, with respect to their first character.

    This function will be removed in the next release and please don't use this function.