Firetron’s BubbleSort

1 53 Views No Comments 1 month ago
  • Sorts a table using the bubble sorting algorithm.

    Custom Command Dependencies:
    None

    Test Code:

    if not Load('done', false) then
    
      local table = {8, 3, 45, 23, 7, 2}
    
      Log(table)
      Log('Unsorted Table:')
    
      CC_BubbleSort(table)
    
      Log(table)
      Log('Sorted Table:')
    
      Save('done', true)
    
    end
    HaasScript Code
    Sign in or Register to view
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free