I have a query which returns a count of objects grouped by these objects in a table although what I want to do afterwards is to firstly sort the values from highest to lowest and the partition them into 10 groups.
What I have so far allows me to either sort the counted values from max to min or, if i comment the sort out, or partition the values by a set number. I would like to know where Im going wrong here because I cant see it. I am pulling the count of objects from the query initially, sorting and then trying to partition them into arrays which I will index at a later stage:
tosort(map(keyword :objectscounted)data)
sorted(sort > tosort)
part(into [] (partition-all 10 sorted))
Where I am also stuck is when using the partition - I need 10 groups of values, not 10 values in each group, any help here is appreciated! Thanks in advance