You can now limit the resulting elements in the array after you push. The new syntax is :
The initial implementation (see
SERVER-8069 for more) only supports negative slice (taking stuff from the end of the array).
Sorting is by embedded document fields and doesn't work any type which is not an embedded docs (in the array).