using nokogiri to parse XML, sorting Alphabetically, started refresh token method