Re: [racket-users] Re: Sorting a list-box%

2018-03-05 Thread James Platt
On Mar 5, 2018, at 4:00 PM, Alex Harsanyi wrote: > If you want to look at a possible implementation, I wrote a wrapper around > list-box% for exactly the purpose of showing SQL query results in a > list-box%. It supports sorting, adding, deleting and updating individual > rows, and you can al

[racket-users] Re: Sorting a list-box%

2018-03-05 Thread Alex Harsanyi
You can get the number of rows by calling `get-number` which is an inherited method from list-control<%>. However, you probably want to keep the data separate from the list box and sort that: the list box always contains strings, but your data type might be a number and you want to sort it as