Fix metadatabox sort order

Sort by displayed value not internal value.
Merge pull request #297 from Sophist-UK/sophist_fix_metadata_display_sort_order

Fix metadatabox sort order