def METHOD_NAME(request):
    sorted_queries = list(request.http_request.query.items())
    sorted_queries.sort()
    string_to_sign = ''
    for name, value in sorted_queries:
        if value is not None:
            string_to_sign += '\n' + name.lower() + ':' + unquote(value)
    return string_to_sign