@qzem: Preferred place is at the TV Server side in combination with the XBMC option "Use backend order"
Note that MediaPortal supports a different sorting for different groups. XBMC only supports 1 sorting order.