Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-19 Thread Tobias Boege
On Sun, 18 May 2014, Beno?t Minisini wrote: Le 14/05/2014 21:38, Tobias Boege a ?crit : Hi Benoit, when we wanted to sort a 2d array (table) by a specific column, variable at runtime, we did the following: 1. Create the class, let's call it Record, to represent the table

Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-19 Thread Tobias Boege
On Mon, 19 May 2014, Beno?t Minisini wrote: Le 19/05/2014 17:42, Tobias Boege a ?crit : I don't understand that: if the sort field is a parameter of the sort, then you can store it inside a static variable just during the sort. Hmm... that's an idea, indeed! Because we can ensure that no

Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-18 Thread Benoît Minisini
Le 14/05/2014 21:38, Tobias Boege a écrit : Hi Benoit, when we wanted to sort a 2d array (table) by a specific column, variable at runtime, we did the following: 1. Create the class, let's call it Record, to represent the table records which implements a _compare() method and has a

[Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-14 Thread Tobias Boege
Hi Benoit, when we wanted to sort a 2d array (table) by a specific column, variable at runtime, we did the following: 1. Create the class, let's call it Record, to represent the table records which implements a _compare() method and has a SortField property which indicates to _compare()

Re: [Gambas-user] Feature request: Giving _compare() an optional user data argument

2014-05-14 Thread B Bruen
On Wed, 14 May 2014 21:38:33 +0200 Tobias Boege tabo...@gmail.com wrote: Hi Benoit, when we wanted to sort a 2d array (table) by a specific column, variable at runtime, we did the following: 1. Create the class, let's call it Record, to represent the table records which implements a