in src/backend/utils/adt/agtype_util.c [198:237]
static int get_type_sort_priority(enum agtype_value_type type)
{
if (type == AGTV_PATH)
{
return 0;
}
if (type == AGTV_EDGE)
{
return 1;
}
if (type == AGTV_VERTEX)
{
return 2;
}
if (type == AGTV_OBJECT)
{
return 3;
}
if (type == AGTV_ARRAY)
{
return 4;
}
if (type == AGTV_STRING)
{
return 5;
}
if (type == AGTV_BOOL)
{
return 6;
}
if (type == AGTV_NUMERIC || type == AGTV_INTEGER || type == AGTV_FLOAT)
{
return 7;
}
if (type == AGTV_NULL)
{
return 8;
}
return -1;
}