unison

Fork of Unison, a bi-directional file synchronization tool
git clone git://git.laack.co/unison.git
Log | Files | Refs | README | LICENSE

sortri.mli (833B)


      1 (* Unison file synchronizer: src/sortri.mli *)
      2 (* Copyright 1999-2020, Benjamin C. Pierce (see COPYING for details) *)
      3 
      4 (* Sort a list (with a stable sort algorithm) of recon items according to the
      5    current setting of various preferences (accessible from the profile and via
      6    the functions below) *)
      7 val sortReconItems : Common.reconItem list -> Common.reconItem list
      8 
      9 (* The underlying comparison function for sortReconItems (in case we
     10    want to use it to sort something else, like stateItems in the UI) *)
     11 val compareReconItems : unit -> (Common.reconItem -> Common.reconItem -> int)
     12 
     13 (* Set the global preferences so that future calls to sortReconItems
     14    will sort in particular orders *)
     15 val sortByName : unit -> unit
     16 val sortBySize : unit -> unit
     17 val sortNewFirst : unit -> unit
     18 val restoreDefaultSettings : unit -> unit