[DEV][TASK 10476] Add group byon appointment reference in appointments tree view