Added slice function
Add orderBy, fix slice
Added groupBy function