Home > XModules >

Requirements

  • OS X 10.9 or later

Download

Version 2.2.1 -- 2020-02-01

Old Versions

Dependencies

SortEngine

SortEngine is a sort routine which have the quick sort and the bubble sort algorithm. And the behaivoir can be customied with object oriented interface.

use SortEngine : script "SortEngine"

(* sort a list *)
set a_list to {5, 7, 1, 9, 3, 4}
tell (make SortEngine)
log sort_list(a_list)
--result :{1, 3, 4, 5, 7, 9}
set a_sorter to it
end tell
log a_list
-- result : {1, 3, 4, 5, 7, 9}

(* reverse sort *)
tell a_sorter
set_ascending(false)
log sort_list(a_list)
--result : {9, 7, 5, 4, 3, 1}
end tell

History

  • 2.2.1 -- 2020-01-28
    • Use OpenHelpBook.scptd instead of HelpBook.osax.
  • 2.2 -- 2017-05-26
    • Enabled to work with AppleScript Libraries.
    • Remove dependency on ModuleLoader.
    • OS X 10.9 or later is required.
  • 2.1.2 -- 2013-10-18
    • Fixed : "sort_table" did not work with XList 1.6.
  • 2.1.1-- 2012-05-28
    • Update Help.
      • Fixed : "Edit Link" and handler's copy link does not work in Mac OS X 10.6.
  • 2.1 -- 2010-10-21
    • Remove dependencies on "ShowHelpBook".
    • ModuleLoader 2.1 or later is required.
  • 2.0 -- 2008.02.02
    • First release with English documents.