문제

We have a large C# application using the GTK# bindings. Recently we became aware of a very strange bug: When the user clicks on a column to sort it, it doesn't sort correctly. To be specific, GTK appears to be ignoring all punctuation (including whitespace) and sorting only on alphabetic characters.

Does anybody have any idea why on Earth it would do something like that?

We're not doing anything fancy with custom sorting or anything like that. I'm really puzzled as to why it doesn't just sort the strings in ASCII order.

도움이 되었습니까?

해결책

We eventually solved this by adding a custom sorting function that just does a normal ASCII comparison.

I'm still baffled as to why this doesn't happen by default in the first place... so if anybody knows, write your answer here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top