How to add sorting on group title in RadListView

plugins

#1

Hi,

I use grouping from RadList and it looks like that.

contacts.component.html

<RadListView dock="top" #contactsView [items]="contacts | async" class="list-group"
                                 [sortingFunction]="sortingFunction"
                                 [groupingFunction]="groupingFunction">

contacts.component.ts

...
(getter & setter somewhere)

this.groupingFunction = (item) => {
    let firstLetter = item.name[0];
    if ('a' > firstLetter.toLowerCase()) {
        return '#';
    } else {
        return firstLetter.toUpperCase();
    }
}
this.sortingFunction = (item, otherItem) => { // only for debug
    return -1; // or 1 
} 

sortingFunction


ASC             DESC            DATE
--- # ---       --- # ---       --- 01-Jan-2018 ---
0011            0011            Ad
--- A ---       --- A ---       --- Yesterday/Today ---
Aa              Ad              Ac
Ab              Ac              Ab
Ac              Ab
Ad              Aa
--- B ---       --- B ---
Ba              Bc
Bb              Bb
Bc              Ba

All this works perfect. I would like to sort the groups based on group title because sortingFunction sorts only the item inside of group.
Alphabetic : How can I move # to the bottom of the list ?
Date : How can I sort it to be Yesteday/Today the first one.


#2

Yes, this is an important feature for me too!