d1rem and ver are not present in reqPath, look in queryString
Fix sorting by comparing on element.getAttributes().toString()

This includes the identifier in the comparison, making sorting more reliable
element.getText() would return the element's inner text node, which was never useful for comparisons
Currently using jdom 1.  jdom 2 has methods to sort children