Sorting
What is available to do sorting in Matrix Brandy, is there a library for it? This must be a fairly common requirement so I'm hoping there's an off-the-shelf solution.
0
Comments
-
Richard_Russell wrote: »What is available to do sorting in Matrix Brandy?
0 -
Richard_Russell wrote: »What's the solution?
0 -
Back in the day for this size of problem (actually any size) I would probably just code up a bubble sort. And then find out if that's good enough or not - it's only a few lines I think?
Could sortlib be used? If it's not already in Basic, I imagine it could be.0 -
Back in the day for this size of problem (actually any size) I would probably just code up a bubble sort.Could sortlib be used? If it's not already in Basic, I imagine it could be.
In a former life I would have considered trying to write a C sorting library for Matrix Brandy myself, but that boat has sailed. I'd naively assumed that it's such a crucial tool somebody would have already written it.0 -
It seems that no solution for fast sorting in Matrix Brandy is available, or is likely to be in the near future. Here is the program which I was hoping to port (listing at YouTube), perhaps somebody might try adapting it to use a BASIC sort of some kind (preferably something a lot better than a Bubble Sort). Since Brandy is so fast there is a possibility it might still manage 60 fps.
0