Fix relationship sorting

This commit is contained in:
przemekmirek 2018-11-08 20:47:58 +01:00
parent 10c5781e6d
commit 5a44433291

View File

@ -1617,9 +1617,9 @@ struct rel_id_sorter
bool operator()(const xlnt::relationship &lhs, const xlnt::relationship &rhs)
{
// format is rTd<decimal number 1..n>
if (lhs.id().size() < rhs.id().size()) // a number with more digits will be larger
if (lhs.id().size() != rhs.id().size()) // a number with more digits will be larger
{
return true;
return lhs.id().size() < rhs.id().size();
}
return lhs.id() < rhs.id();
}