gatherOrdinal
gatherOrdinal is a function often found in programming libraries, particularly those dealing with data manipulation and analysis. Its primary purpose is to collect and return the ordinal values of elements within a given dataset or collection. Ordinal values represent the position of an element in a sequence, such as first, second, third, and so on.
The function typically takes a collection of items as input. These items can be of various data
The implementation details of gatherOrdinal can vary. Some versions might directly return numerical ranks (e.g., 1,