Good morning! I'm not very familiar with querying, or any sort of design related matters with SharePoint, so please bear with me.
If I have a custom document library, and I want to customize a list view by sorting, first, by category, and then sorting by <anotherField>
, how would I go about that? I think it should be a web part.... I have an existing web part that only sorts it by category, but I don't know how to do the sub sorting by <anotherField>
. I tried looking at the XLS(?) file, but I can't comprehend the code.
If you could point me in the right direction, I'd appreciate it :)
[As a side question, if you have time, how can I make it so that each category is expandable to show the sorted (by anotherField) items that are each part of category.
IE: If people were nodes (Amy, Age 5, Girl), (Adam, Age 13, Boy), (Ashley, Age 11, Girl), I'd have a list where the initial view is: + Girl + Boy
and upon clicking the [+] sign, it'd expand. So if I clicked [+] next to Girl, it'd show all girls, sorted by age.
Edit: To show what I've tried, I've tried to alter the existing library that I spoke of by having the new field "<anotherField>
" and setting it in the settings of the library to sort, first by category, and then by <anotherField>
. In the document library view, it shows the way I want it sorted, but the web part is currently still only sorting by the first criterion, so I am trying to find where it's pulling the information or formatting itself so that I can hopefully edit it.