/* Returns: a #gint32 containing the value of the "standard::sort_order" attribute.  */
gint32 g_file_info_get_sort_order(GFileInfo *info)
/* Returns: a #gint32 containing the value of the "standard::sort_order" attribute.  */
gint32 g_file_info_get_sort_order(GFileInfo *info)
{
  static guint32 attr = 0;
  GFileAttributeValue *value;
  g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
  if (attr == 0)
    attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER);
  value = g_file_info_find_value (info, attr);
  return _g_file_attribute_value_get_int32 (value);
}