Itβs good if you use Python and have your data in a list of lists, for example
my_data = [ [ A, B, C, D ], [ B, C, A, D ], [ X, Y, M, Z ], [ O, M, L, P ] ]
you could just do a simple list comprehension like this:
sorted_lists = [sorted(l) for l in my_data]
But since you did not specify any language or any other useful information, I do not know if this will help.
source share