Added _sort option to NdMapping to optimize internal operations
NdMapping slicing operations now performed iteratively for speed

Previously slicing operations would generate all the filter
conditions and apply them all at once. This commit switches to
an iterative approach, where each condition filters the list
of items incrementally.