Hello All, I am having a bit of trouble developing a proper sort that I will eventually be turning into a macro in which data is sorted in order within its own sub-group and then those sub-groups are sorted by the lowest value in the subgroup in descending (A-->Z) order. The data is then outputted to as per the original data (i.e the output isn't a subgroup, it is the original data that has been simply sorted).
Here is an example of what I am talking about utilizing playing cards:
<tbody>
</tbody>
<tbody>
</tbody>
In this example the "Desired Suit Order" would be the sorting done into and within sub-groups and the "Desired Overall Order" is the desired results.
As can be seen the number of items in a group are dynamic. I would also like the number of sub-groups to be dynamic as well if, per this example, a 5th, 6th, etc. suit was added.
Any help / ideas are appreciated.
Thanks,
_____
Here is an example of what I am talking about utilizing playing cards:
<tbody> </tbody> |
<tbody>
</tbody>
<tbody> </tbody> |
<tbody>
</tbody>
In this example the "Desired Suit Order" would be the sorting done into and within sub-groups and the "Desired Overall Order" is the desired results.
As can be seen the number of items in a group are dynamic. I would also like the number of sub-groups to be dynamic as well if, per this example, a 5th, 6th, etc. suit was added.
Any help / ideas are appreciated.
Thanks,
_____