Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,484 for Sort (0.21 sec)

  1. src/sort/sort.go

    func (x StringSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    // Sort is a convenience method: x.Sort() calls Sort(x).
    func (x StringSlice) Sort() { Sort(x) }
    
    // Convenience wrappers for common cases
    
    // Ints sorts a slice of ints in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.Sort].
    func Ints(x []int) { intsImpl(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            expect:
            def l = [1, 2, 3]
            !sort(l, naturalComparator).is(l)
    
            and:
            sort([2, 1, 3], naturalComparator) == [1, 2, 3]
            sort([2, 1, 3] as Set, naturalComparator) == [1, 2, 3]
            sort([], naturalComparator) == []
            sort([] as Set, naturalComparator) == []
        }
    
        def "sorting"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  4. pkg/controlplane/reconcilers/lease_test.go

    				{Name: "foo", Port: 8080, Protocol: "TCP"},
    				{Name: "bar", Port: 1000, Protocol: "TCP"},
    				{Name: "baz", Port: 1010, Protocol: "TCP"},
    			},
    			initialState: makeEndpointsArray("foo", []string{"1.2.3.4"},
    				[]corev1.EndpointPort{
    					{Name: "foo", Port: 8080, Protocol: "TCP"},
    					{Name: "bar", Port: 1000, Protocol: "TCP"},
    					{Name: "baz", Port: 1010, Protocol: "TCP"},
    				},
    			),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/insight/DependencyResultSorterSpec.groovy

            new DefaultMutableVersionConstraint(version)
        }
    
        def "throws exception if dependency or requested component selector is null (#d1, #d2)"() {
            when:
            DependencyResultSorter.sort([d1, d2], versionSelectorScheme, versionComparator, versionParser)
    
            then:
            Throwable t = thrown(IllegalArgumentException)
            t.message == "Dependency edge or the requested component selector may not be null"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 18.6K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/graph_test.go

    			// sort the nodes by ID
    			// (the slices we get back are from map iteration, where order is not guaranteed)
    			expectNodes := c.expect.graph.Nodes()
    			sort.Slice(expectNodes, func(i, j int) bool {
    				return expectNodes[i].ID() < expectNodes[j].ID()
    			})
    			startNodes := c.start.graph.Nodes()
    			sort.Slice(startNodes, func(i, j int) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/pgen.go

    	// Sort non-autos before autos.
    	if needAlloc(a) != needAlloc(b) {
    		return needAlloc(b)
    	}
    
    	// If both are non-auto (e.g., parameters, results), then sort by
    	// frame offset (defined by ABI).
    	if !needAlloc(a) {
    		return a.FrameOffset() < b.FrameOffset()
    	}
    
    	// From here on, a and b are both autos (i.e., local variables).
    
    	// Sort followers after leaders, if mls != nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. src/go/build/deps_test.go

    	cmp, internal/race, math/bits
    	< iter
    	< maps, slices;
    
    	internal/oserror, maps, slices
    	< RUNTIME;
    
    	RUNTIME
    	< sort
    	< container/heap;
    
    	RUNTIME
    	< io;
    
    	RUNTIME
    	< arena;
    
    	syscall !< io;
    	reflect !< sort;
    
    	RUNTIME, unicode/utf8
    	< path;
    
    	unicode !< path;
    
    	# SYSCALL is RUNTIME plus the packages necessary for basic system calls.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. manifests/addons/dashboards/istio-extension-dashboard.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${datasource}"
              },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:47:04 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. docs/metrics/prometheus/grafana/node/minio-node.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "10.4.0",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_PROMETHEUS}"
              },
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 13:24:37 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top