From 4508f09860543c8ba0152a02ee49d1f2c97557e8 Mon Sep 17 00:00:00 2001 From: srn Date: Wed, 24 Jan 2007 13:48:54 +0000 Subject: [PATCH] 12601, added a comporator for a set of Families in order to make it be sorted in alphabetic order --- src/CONVERTOR/VISU_Convertor.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CONVERTOR/VISU_Convertor.hxx b/src/CONVERTOR/VISU_Convertor.hxx index f6564a32..ae760147 100644 --- a/src/CONVERTOR/VISU_Convertor.hxx +++ b/src/CONVERTOR/VISU_Convertor.hxx @@ -170,7 +170,15 @@ namespace VISU //--------------------------------------------------------------- - typedef std::set TFamilySet; + + class FamilyCmp { + public: + bool operator() (const PFamily& theFamily1, const PFamily& theFamily2) const { + return (theFamily1->myName < theFamily2->myName); + } + }; + + typedef std::set TFamilySet; //! Define a basic class for MED GROUP entity struct TGroup: virtual TIDMapper -- 2.39.2