Added docs for nested sorting