@classmethod
def _build_ordering(cls, ordering):
    """builds the ordering list and properly converts dunders to dots for nested fields

        :param ordering: field names used to order the results
        :type ordering: list

        :return: a proper list of field names
        :rtype: list
        """
    if isinstance(ordering, str):
        ordering = [ordering]
    formatted = []
    for key in ordering:
        nested_key = key.lower().replace('__', '.')
        formatted.append(nested_key)
    return formatted
