I would like to define a function with the following properties: Given a list of equal length sub-lists
ls={{a,a,a},{a,b,a},{a,b,c}};
Define a function
Slort[ls,1]
to return
{{1,2,3}} (* all three sub-lists have the same first element *)
Slort[ls,2]
{{1},{2,3}} (* sub-lists 2 and 3 have the same second element, sub-list 1 is unique *)
Slort[ls,3]
{{1,2},{3}} (* sub-list 1 and 2 have the same third element, sub-list 3 is unique *)
and etc.
With your help I should then be able to extend the number of sub-lists and the number of elements in each sub-list myself.