Added traversal support for usage as sorting