Datagrid - sort within column

0
Hi, Let’s assume we have two entities, a group of users might have access to certain buildings, a building might be accessed by different groups: Now we have a page with a datagrid for the buildings with a column that refers to the groups having access which looks like this: How can I sort the entries such that they read “A, B, C” instead of “A, C, B”?  
asked
2 answers
0

Hi Erwin,

Couple of things:

  1. The order IMHO, is the way (in the order) the groups were associated to the building (you could test it and check if it indeed happens)
  2. I don’t think there is a way to sort your association, you may have to create your own attribute if you really need to display it in sorted order – but it could be a lot of hassle

Maybe other makers have better ideas :)

answered
0

Any other ideas?

answered