On 6/15/05, Paolo Mantovani <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> During a recent job I have had to develop some functions for string sorting.
> Some of these contains a very simple implementation of the "natural" sort
> algorithm.
> This implementation uses the service css.util.TextSearch to perform special
> string comparisions.
> Although the code works well (but it is not very tested!!)  and fits my specs,
> the performance remains quite slow and I don't see any (easy) way to improve
> it.
> (but what appears difficult to my eyes maybe easy for others :-)
> 
> Finally, I thought to submit the thing as a code-snippet, in the hope it will
> be useful to someone.

Hi Paolo,

You, or perhaps someone else, may be interested in this hack of mine:

http://kohei.us/ooo/nsort/

which introduces a native natural sort algorithm in Calc.

The work was completed (with some minor enhancement still to be done)
about a year ago, but it will be still sometime before it gets
integrated into the code base, according to the core dev team.  The
reason being that new bits need to be introduced in the file format as
well as the UNO API.

Kohei

-- 
Kohei Yoshida
OpenOffice.org Calc contributor
http://kohei.us/ooo/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to