Author Topic: SortA() in Axe?  (Read 10842 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
SortA() in Axe?
« on: April 11, 2010, 09:45:12 pm »
How do you SortA() in Axe?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: SortA() in Axe?
« Reply #1 on: April 11, 2010, 09:47:05 pm »
Bubble sort?

_player1537

  • Guest
Re: SortA() in Axe?
« Reply #2 on: April 11, 2010, 09:48:04 pm »
bubbles?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: SortA() in Axe?
« Reply #3 on: April 11, 2010, 09:48:28 pm »
No.

I meant sorting data or the data in an AppVar in ascending order.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







_player1537

  • Guest
Re: SortA() in Axe?
« Reply #4 on: April 11, 2010, 09:49:29 pm »
gimme a couple of minutes, I'll try and make something that'll do that

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: SortA() in Axe?
« Reply #5 on: April 11, 2010, 09:51:18 pm »
Player, you are a life-saver.

P.S. If you use some inference, you can guess what this is all for.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: SortA() in Axe?
« Reply #6 on: April 11, 2010, 10:14:24 pm »
Wait is this data numbers?  Or something else?  Alphabetically? o.O

We should have an Axe sorting competition ^^

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: SortA() in Axe?
« Reply #7 on: April 11, 2010, 10:20:32 pm »
Oi.

Numbers.
Integers.
Sorted in the AppVar in ascending order, mang.

:P
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: SortA() in Axe?
« Reply #8 on: April 11, 2010, 10:26:33 pm »
Wait is this data numbers?  Or something else?  Alphabetically? o.O

We should have an Axe sorting competition ^^

Maybe we could have some kind of competition page like at UTI :P Could be fun.

As for on topic, I've been thinking of ways but can't come up with a lot...plus I've got other stuff going on right now. So if _player hasn't come up with something later when I'm free I shall try.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: SortA() in Axe?
« Reply #9 on: April 11, 2010, 10:36:26 pm »
Thank you, sir.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







_player1537

  • Guest
Re: SortA() in Axe?
« Reply #10 on: April 11, 2010, 11:45:31 pm »
well, I wrote one that's pretty much a one time wonder.  The first time you run it it works fine, the second/third/fourth/etc don't, the last 3 digits are always in the wrong order.  I'll work on it tomarrow some more.  If someone can figure out what's wrong with it, please tell me (its been "bugging" me for a while).

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: SortA() in Axe?
« Reply #11 on: April 11, 2010, 11:50:58 pm »
I don't know if it is just me or not but it doesn't appear like your files have extensions on them. I don't know how to open them or anything ???
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SortA() in Axe?
« Reply #12 on: April 11, 2010, 11:52:32 pm »
That could be useful if I do something like Illusiat 13 item menu, where each individual item copy takes one slot but are stored in the first avaliable slot, meaning you need to sort them eventually else it becomes a mess.

@Meishe: I'm not sure but I think he did them under Linux. I wonder if he named them wrong or something. What I would try to do is rename them with 8xp extensions and open with SourceCoder (or Wabbitemu) first, and if it fails, then the files may be corrupted.
« Last Edit: April 11, 2010, 11:54:14 pm by DJ Omnimaga »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: SortA() in Axe?
« Reply #13 on: April 11, 2010, 11:54:09 pm »
Here is an implementation of a quick bubble sort.  Its not very fast, but i couldnt get the merge sort to work.  It can sort 100 elements in about a second

List is sorted in place in L1 (no other lists needed)
N is length

Code: [Select]
1->S
While S
0->S
For(F,0,N-1
If {L1+F}>{L1+F+1}
Expr(L1+F,L1+F+1,1
1->S
End
End
End

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SortA() in Axe?
« Reply #14 on: April 11, 2010, 11:55:45 pm »
Wow I posted almost at the same time as Meishe, then I edit my post to reply to him, then Builderboy posts :O

Nice Builderboy. I think 1 second for sorting something that doesn't require speed should be tolerable, especially in menus.