Hi Sami,
XSOData has sort feature implemented by default. All you need to do is to implement custom sorter in SAPUI5 side for composite column sorting. Follow the below blog
http://scn.sap.com/community/developer-center/front-end/blog/2014/01/14/custom-sorter-and-filter-in-sapui5-table by Angel Puertas