Added tests to the sorting functions of the documentation transformer