Add support for First, Sort and Reverse

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>