Fix metadatabox sort order

Sort by displayed value not internal value.