[#24] Fix resource sorting

We were only sorting by the filters (i.e. the resources which values first
appears in the filters are the first to be displayed), but not by group_by,
x_axis, or y_axis parameters. Fixing that.