Commit f44891f7 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Implemented natural case sorting of profile fields.

parent e41378bb
......@@ -74,6 +74,10 @@ class PluginArtefactInternal extends PluginArtefact {
public static function get_toplevel_artefact_types() {
return array('profile');
}
public static function sort_child_data($a, $b) {
return strnatcasecmp($a->text, $b->text);
}
}
class ArtefactTypeProfile extends ArtefactType {
......@@ -344,6 +348,7 @@ class ArtefactTypeProfileField extends ArtefactTypeProfile {
$res->parent = null;
return $res;
}
}
class ArtefactTypeCachedProfileField extends ArtefactTypeProfileField {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment