User Tag List

Results 1 to 4 of 4

Thread: Sorting a list of 64-bit integers

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    330
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Sorting a list of 64-bit integers

    Hi

    Does anyone know how I can sort a list of 64-bit integers?

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,464
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Well how about using SQLite. However you should google "64 bit interger sorting" to decide on your approach.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    630
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    You're gonna want to create a sorting algorithm. Essentially, create an Array and an Active. On the Active, have six Alterable Values (int0, int1, arr0, and arr1). Load all the numbers into a Value array, choose your sorting method (Bubble Sort, Insertion Sort, Bogosort, etc.) and run a fast loop that loads two neighboring numbers into the Active. Store their positions in arr0 and arr1, and load the values into int0 and int1. Compare those and reorganize them back into the array at the proper positions. Then depending on your sorting method, run other loops to compare to lower-numbered spots.

    That's just how I'd go about it. Tom Scott has a great video from earlier this year on the various methods of sorting algorithms and they can be easily translated into Fusion. https://www.youtube.com/watch?v=RGuJga2Gl_k

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,464
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    You might look at the Julia programming language with 64 bit interger type (Int64) and sorting functions already ... Quicksort and 64 bit interger types defined. Call it from MMF2.5 as an external program then read into MMf2.5. Here: https://docs.julialang.org/en/v1/bas...g-Algorithms-1

Similar Threads

  1. HTML5 List Object Not Sorting
    By drnebula in forum HTML5 Export Module 2.5
    Replies: 0
    Last Post: 26th January 2019, 09:31 PM
  2. Sorting on a List Object on command
    By Chrille in forum Fusion 2.5
    Replies: 13
    Last Post: 2nd April 2015, 01:48 AM
  3. Sorting a list
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 5th July 2012, 06:11 PM
  4. List Object Sorting
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th May 2011, 03:21 PM
  5. Sorting a List
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th December 2007, 05:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •