Please post a bug in lighthouse for this; the forums is a poor place for us
to try and keep up with issues.

On Tue, Jun 7, 2011 at 1:47 AM, Robert <[email protected]> wrote:

> String sorting in htmltable is not prepared for localization.
> Recently I had to do it and there was two options:
> - convert localized string to ascii sortable string
> - change the HTMLTable.Sort source (refactor) to allow including of
> different sorting functions.
>
> I followed first path (http://jsfiddle.net/6a3Kq/) but I still believe
> the second one is better.
> It would only need small change in source:
> var sorter = parser.sorter;
> if (!sorter){
>
> var data = this.parseData(parser).sort(function(a, b){
> if (a.value === b.value) return 0;
> return a.value > b.value ? 1 : -1;
> });
>

Reply via email to