#pragma once

#include <library/cpp/json/json_value.h>
#include <util/generic/string.h>
#include <util/generic/vector.h>

namespace NPrivate {

    class TSort {
    public:
        typedef TVector<TSort> TFullSort;
        TSort(const TString& str);
        static void SortJson(NJson::TJsonValue& result, const TFullSort& sort);
    private:
        class TComparer;
        bool Numeric;
        bool Back;
        TString Field;
    };
}
