#177: add support for sorting array elements in projections