Implement sorting on index.xhtml.