Home
last modified time | relevance | path

Searched +refs:sort +refs:list (Results 1 – 25 of 107545) sorted by relevance

12345678910>>...4302

/dports/lang/racket/racket-8.3/share/pkgs/srfi-lib/srfi/32/
H A Dsort.rkt2 (provide list-sort
3 (rename list-sort list-sort!)
4 list-stable-sort
5 (rename list-stable-sort list-stable-sort!)
12 (rename list-merge list-merge!)
13 list-merge-sort
14 (rename list-merge-sort list-merge-sort!)
57 (define (list-sort < l) ; Sort lists by converting to
62 #;(define list-sort! list-merge-sort!)
64 (define list-stable-sort list-merge-sort)
[all …]
/dports/textproc/p5-Perl-Lint/Perl-Lint-0.25/t/Policy/BuiltinFunctions/
H A Dprohibit_reverse_sort_block.t27 reverse sort {$a <=> $b} @list;
30 reverse sort({$a <=> $b} @list);
41 reverse sort {$a cmp $b} @list;
55 sort {$b <=> $a} @list;
64 sort {$b cmp $a} @list;
77 sort 'some_sort_func', @list;
78 sort('some_sort_func', @list);
94 sort 'some_sort_func', @list;
95 sort('some_sort_func', @list);
107 sort {$b cmp $a} @list;
[all …]
H A Drequire_simple_sort_block.t27 sort @list;
28 sort {$a cmp $b;} @list;
29 sort {$a->[0] <=> $b->[0] && $a->[1] <=> $b->[1]} @list;
30 sort {bar($a,$b)} @list;
31 sort 'func', @list;
33 sort(@list);
34 sort({$a cmp $b;} @list);
35 sort({$a->[0] <=> $b->[0] && $a->[1] <=> $b->[1]} @list);
36 sort({bar($a,$b)} @list);
37 sort('func', @list);
[all …]
/dports/games/gnuchess/gnuchess-6.2.9/src/engine/
H A Dsort.cpp215 list_sort(sort->list); in sort_init()
222 LIST_CLEAR(sort->list); in sort_init()
244 move = LIST_MOVE(sort->list,sort->pos); in sort_next()
330 gen_captures(sort->list,sort->board); in sort_next()
331 note_mvv_lva(sort->list,sort->board); in sort_next()
332 list_sort(sort->list); in sort_next()
340 list_copy(sort->list,sort->bad); in sort_next()
356 list_sort(sort->list); in sort_next()
391 LIST_CLEAR(sort->list); in sort_init_qs()
466 gen_captures(sort->list,sort->board); in sort_next_qs()
[all …]
/dports/games/scid/scid/engines/togaII1.2.1a/src/
H A Dsort.cpp205 list_sort(sort->list); in sort_init()
212 LIST_CLEAR(sort->list); in sort_init()
234 move = LIST_MOVE(sort->list,sort->pos); in sort_next()
322 gen_captures(sort->list,sort->board); in sort_next()
323 note_mvv_lva(sort->list,sort->board); in sort_next()
324 list_sort(sort->list); in sort_next()
332 list_copy(sort->list,sort->bad); in sort_next()
350 list_sort(sort->list); in sort_next()
385 LIST_CLEAR(sort->list); in sort_init_qs()
460 gen_captures(sort->list,sort->board); in sort_next_qs()
[all …]
/dports/x11-toolkits/p5-Gtk2/Gtk2-1.24993/t/
H A DGtkTreeModelSort.t7 my $list = Gtk2::ListStore -> new("Glib::Int");
9 $list -> set($list -> append(), 0 => 42);
10 $list -> set($list -> append(), 0 => 23);
12 my $sort = Gtk2::TreeModelSort -> new_with_model($list);
15 is($sort -> get_model(), $list);
20 is($sort -> get($sort -> get_iter_from_string("0"), 0), 23);
21 is($sort -> get("model"), $list);
24 my $iter = $list -> get_iter($path);
36 is($list -> get($list -> get_iter($child_path), 0), 23);
40 is($list -> get($child_iter, 0), 23);
[all …]
/dports/science/nwchem-data/nwchem-7.0.2-release/src/basis/convert/
H A Dgrepsort8 rm -f list.old list.new sort.old sort.new sort.u.old sort.u.new
10 egrep 'basis|ecp' ../library > list.old
11 egrep 'basis|ecp' library > list.new
13 wc list.old list.new
15 cat list.old | sort > sort.old
16 cat list.new | sort > sort.new
18 cat list.old | sort -u > sort.u.old
19 cat list.new | sort -u > sort.u.new
21 wc sort.*
23 diff -b sort.u.old sort.u.new
/dports/science/nwchem/nwchem-7b21660b82ebd85ef659f6fba7e1e73433b0bd0a/src/basis/convert/
H A Dgrepsort8 rm -f list.old list.new sort.old sort.new sort.u.old sort.u.new
10 egrep 'basis|ecp' ../library > list.old
11 egrep 'basis|ecp' library > list.new
13 wc list.old list.new
15 cat list.old | sort > sort.old
16 cat list.new | sort > sort.new
18 cat list.old | sort -u > sort.u.old
19 cat list.new | sort -u > sort.u.new
21 wc sort.*
23 diff -b sort.u.old sort.u.new
/dports/textproc/p5-Perl-Critic/Perl-Critic-1.140/t/BuiltinFunctions/
H A DProhibitReverseSortBlock.run5 reverse sort {$a <=> $b} @list;
6 reverse sort {$a->[0] <=> $b->[0] && $a->[1] <=> $b->[1]} @list;
7 sort {$beta{$a} <=> $alpha{$b}} @list;
8 reverse sort({$a <=> $b} @list);
10 sort({$beta{$a} <=> $alpha{$b}} @list);
12 sort{ $isopen{$a}->[0] <=> $isopen{$b}->[0] } @list;
20 sort {$b <=> $a} @list;
21 sort {$alpha{$b} <=> $beta{$a}} @list;
22 sort {$b->[0] <=> $a->[0] && $b->[1] <=> $a->[1]} @list;
34 sort 'some_sort_func', @list;
[all …]
H A DRequireSimpleSortBlock.run5 sort @list;
6 sort {$a cmp $b;} @list;
7 sort {$a->[0] <=> $b->[0] && $a->[1] <=> $b->[1]} @list;
8 sort {bar($a,$b)} @list;
9 sort 'func', @list;
11 sort(@list);
12 sort({$a cmp $b;} @list);
13 sort({$a->[0] <=> $b->[0] && $a->[1] <=> $b->[1]} @list);
14 sort({bar($a,$b)} @list);
15 sort('func', @list);
[all …]
/dports/lang/chibi-scheme/chibi-scheme-0.10/lib/srfi/95/
H A Dtest.sld12 (test "sort equal list" '(0 0 0 0 0 0 0 0 0) (sort '(0 0 0 0 0 0 0 0 0)))
13 (test "sort equal list cmp" '(0 0 0 0 0 0 0 0 0)
15 (test "sort ordered list" '(1 2 3 4 5 6 7 8 9) (sort '(1 2 3 4 5 6 7 8 9)))
16 (test "sort reversed list" '(1 2 3 4 5 6 7 8 9) (sort '(9 8 7 6 5 4 3 2 1)))
17 (test "sort random list 1" '(1 2 3 4 5 6 7 8 9) (sort '(7 5 2 8 1 6 4 9 3)))
18 (test "sort random list 2" '(1 2 3 4 5 6 7 8) (sort '(5 3 4 1 7 6 8 2)))
19 (test "sort random list 3" '(1 2 3 4 5 6 7 8 9) (sort '(5 3 4 1 7 9 6 8 2)))
20 (test "sort short equal list" '(0 0 0) (sort '(0 0 0)))
21 (test "sort short random list" '(1 2 3) (sort '(2 1 3)))
23 (test "sort numeric list <" '(1 2 3 4 5 6 7 8 9)
[all …]
/dports/lang/chibi-scheme/chibi-scheme-0.10/lib/srfi/132/
H A Dtest.sld8 (list-sort > (list)))
10 (list-sort > (list 987)))
12 (list-sort > (list 987 654)))
14 (list-sort > (list 9 8 6 3 0 4 2 5 7 1)))
16 (list-stable-sort > (list)))
18 (list-stable-sort > (list 987)))
20 (list-stable-sort > (list 987 654)))
122 (list-sort! > (list)))
124 (list-sort! > (list 987)))
126 (list-sort! > (list 987 654)))
[all …]
/dports/x11-wm/enlightenment/enlightenment-0.24.2/src/modules/fileman/
H A De_mod_config.c166 cfdata->list.sort.dirs.last = fileman_config->list.sort.dirs.last; in _fill_data()
167 cfdata->list.sort.extension = fileman_config->list.sort.extension; in _fill_data()
168 cfdata->list.sort.mtime = fileman_config->list.sort.mtime; in _fill_data()
169 cfdata->list.sort.size = fileman_config->list.sort.size; in _fill_data()
170 cfdata->list.sort.case_sen = !(fileman_config->list.sort.no_case); in _fill_data()
211 fileman_config->list.sort.dirs.last = cfdata->list.sort.dirs.last; in _basic_apply()
212 fileman_config->list.sort.extension = cfdata->list.sort.extension; in _basic_apply()
213 fileman_config->list.sort.mtime = cfdata->list.sort.mtime; in _basic_apply()
214 fileman_config->list.sort.size = cfdata->list.sort.size; in _basic_apply()
261 (fileman_config->list.sort.mtime != cfdata->list.sort.mtime) || in _basic_check_changed()
[all …]
/dports/textproc/p5-Perl-Critic/Perl-Critic-1.140/t/Subroutines/
H A DProhibitReturnSort.run6 return sort @list;
7 return sort(@list);
11 return sort { $a <=> $b } @list;
12 return sort({ $a <=> $b } @list);
16 return sort @list if $bar;
17 return sort(@list) if $bar;
26 @sorted = sort @list;
31 return wantarray ? sort @list : $foo;
35 return map {func($_)} sort @list;
46 return sort @list;
[all …]
/dports/lang/chibi-scheme/chibi-scheme-0.10/lib/srfi/
H A D132.sld4 list-sorted? vector-sorted?
5 list-sort list-stable-sort
6 list-sort! list-stable-sort!
7 vector-sort vector-stable-sort
8 vector-sort! vector-stable-sort!
9 list-merge list-merge!
11 list-delete-neighbor-dups
12 list-delete-neighbor-dups!
19 (include "132/sort.scm"))
/dports/lang/racket/racket-8.3/share/pkgs/r6rs-lib/rnrs/
H A Dsorting-6.rkt5 (provide list-sort
6 vector-sort
7 vector-sort!)
9 (define (list-sort < l)
10 ;; FIXME (performance): `sort' internally converts
11 ;; a list to an mlist!
12 (list->mlist (sort (mlist->list l) <)))
14 (define (vector-sort < v)
15 (list->vector (sort (vector->list v) <)))
17 (define (vector-sort! < v)
[all …]
/dports/graphics/photoqt/photoqt-1.6/cplusplus/scripts/
H A Dsortlist.h31 static void sortList(QFileInfoList *list, QString sortby, bool sortbyAscending) { in sortList() argument
42 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
47 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
59 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
64 …std::sort(list->rbegin(), list->rend(), [&collator](const QFileInfo &file1, const QFileInfo &file2… in sortList()
72 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
77 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
89 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
94 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
104 …std::sort(list->begin(), list->end(), [&collator](const QFileInfo &file1, const QFileInfo &file2) { in sortList()
[all …]
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/cfile/
H A Dcfilelist.cpp29 void cf_sort_filenames( SCP_vector<SCP_string> &list, int sort, SCP_vector<file_list_info> *info ) in cf_sort_filenames() argument
39 if (sort == CF_SORT_NAME) { in cf_sort_filenames()
47 list[j] = list[j + incr]; in cf_sort_filenames()
68 } else if (sort == CF_SORT_TIME) { in cf_sort_filenames()
95 } else if (sort == CF_SORT_REVERSE) { in cf_sort_filenames()
105 nprintf(("Error", "Unknown sorting method %d passed to cf_sort_filenames()\n", sort)); in cf_sort_filenames()
115 void cf_sort_filenames( int n, char **list, int sort, file_list_info *info ) in cf_sort_filenames() argument
121 if (sort == CF_SORT_NAME) { in cf_sort_filenames()
150 } else if (sort == CF_SORT_TIME) { in cf_sort_filenames()
177 } else if (sort == CF_SORT_REVERSE) { in cf_sort_filenames()
[all …]
/dports/x11-toolkits/fltk/fltk-1.3.8/src/
H A Dfilename_list.cxx76 Fl_File_Sort_F *sort) { in fl_filename_list() argument
81 return fl_scandir(d, list, 0, sort); in fl_filename_list()
99 int n = fl_scandir(dirloc, list, 0, sort); in fl_filename_list()
102 int n = scandir(dirloc, list, 0, (int(*)(const dirent **, const dirent **))sort); in fl_filename_list()
105 int n = scandir(dirloc, list, 0, (int(*)(dirent **, dirent **))sort); in fl_filename_list()
108 int n = scandir(dirloc, list, 0, (int(*)(void*, void*))sort); in fl_filename_list()
110 int n = scandir(dirloc, list, 0, sort); in fl_filename_list()
113 int n = scandir(dirloc, list, 0, (int(*)(const struct dirent**,const struct dirent**))sort); in fl_filename_list()
115 int n = scandir(dirloc, list, 0, (int(*)(const void*,const void*))sort); in fl_filename_list()
121 int n = scandir(dirloc, list, 0, (int(*)(const void*,const void*))sort); in fl_filename_list()
[all …]
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/langtools/tools/javac/lambda/
H A DTargetType51.java42 SimpleList<X> sort(Comparator<? super X> c); in sort() method
55 void testAssignmentContext(SimpleList<Person> list, boolean cond) { in testAssignmentContext() argument
56 SimpleList<Person> p1 = list.sort(comparing(Person::getName)); in testAssignmentContext()
57 SimpleList<Person> p2 = list.sort(comparing(x->x.getName())); in testAssignmentContext()
58 … SimpleList<Person> p3 = list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())); in testAssignmentContext()
59 …SimpleList<Person> p4 = list.sort((cond ? comparing(Person::getName) : comparing(x->x.getName()))); in testAssignmentContext()
62 void testMethodContext(SimpleList<Person> list, boolean cond) { in testMethodContext() argument
63 testMethodContext(list.sort(comparing(Person::getName)), true); in testMethodContext()
64 testMethodContext(list.sort(comparing(x->x.getName())), true); in testMethodContext()
65 … testMethodContext(list.sort(cond ? comparing(Person::getName) : comparing(x->x.getName())), true); in testMethodContext()
[all …]

12345678910>>...4302