eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FileSorter':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: FileSorter


Inheritance:

   Object
   |
   +--FileSorter

Package:
stx:libbasic2
Category:
Interface-Tools-File
Version:
rev: 1.12 date: 2021/11/27 02:05:54
user: cg
file: FileSorter.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


sort files by selector
care for directoriesBeforeFiles sortCaseless sortReverse


[instance variables:]
directoriesBeforeFiles: if true all directories and files will be sorted 
                        independently by the selector and the directories 
                        are before files 
sortCaseless:           if true and the selector is #baseName ignore upper
                        and lowercase in sort
sortReverse:            if true starts with highest value of the sort

[class variables:]

copyright

COPYRIGHT (c) 2004 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  directoriesBeforeFiles: arg1 selector: arg2 sortCaseless: arg3 sortReverse: arg4


Instance protocol:

accessing
o  directoriesBeforeFiles

o  directoriesBeforeFiles: something

o  directoriesBeforeFiles: directoriesBeforeFilesArg selector: selectorArg sortCaseless: sortCaselessArg sortReverse: sortReverseArg
set instance variables (automatically generated)

o  selector

o  selector: something

o  sortCaseless
aspect for sort caseless

o  sortCaseless: something

o  sortReverse

o  sortReverse: something

action
o  sortItemList: aList
for now, always do a natural sort where numerical components are compared as numbers



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:19:57 GMT