/**
 * gets the sorting weight for a ship class
 * @param ShipClass $shipClass
 * @return int
 */
function getShipClassSortWeight($shipClass)
{
    $shipClassId = $shipClass->getID();
    switch ($shipClassId) {
        // Battleship
        case 1:
            return 60;
            // Capsule
        // Capsule
        case 2:
            return 0;
            // Noobship
        // Noobship
        case 3:
            return 5;
            // Frigate
        // Frigate
        case 4:
            return 10;
            // Interceptor
        // Interceptor
        case 5:
            return 15;
            // Assault frigate
        // Assault frigate
        case 6:
            return 12;
            // Industrial
        // Industrial
        case 7:
            return 7;
            // Cruiser
        // Cruiser
        case 8:
            return 20;
            // Heavy assault
        // Heavy assault
        case 9:
            return 25;
            // Battlecruiser
        // Battlecruiser
        case 10:
            return 35;
            // Shuttle
        // Shuttle
        case 11:
            return 1;
            // Mining barge
        // Mining barge
        case 12:
            return 7;
            // Logistics
        // Logistics
        case 13:
            return 23;
            // Transport
        // Transport
        case 14:
            return 9;
            // Destroyer
        // Destroyer
        case 15:
            return 17;
            // Covert ops
        // Covert ops
        case 16:
            return 16;
            // Drone
        // Drone
        case 17:
            return 6;
            // Unknown
        // Unknown
        case 18:
            return -1;
            // Dreadnought
        // Dreadnought
        case 19:
            return 500;
            // Freighter
        // Freighter
        case 20:
            return 125;
            // Command ship
        // Command ship
        case 21:
            return 40;
            // Exhumer
        // Exhumer
        case 22:
            return 8;
            // Interdictor
        // Interdictor
        case 23:
            return 18;
            // Recon ship
        // Recon ship
        case 24:
            return 21;
            // Titan
        // Titan
        case 26:
            return 1000;
            // Carrier
        // Carrier
        case 27:
            return 250;
            // Supercarrier
        // Supercarrier
        case 28:
            return 750;
            // Capital Industrial
        // Capital Industrial
        case 29:
            return 450;
            // Electronic Attack Ship
        // Electronic Attack Ship
        case 30:
            return 13;
            // Heavy Interdictor
        // Heavy Interdictor
        case 31:
            return 30;
            // Black Ops
        // Black Ops
        case 32:
            return 150;
            // Marauder
        // Marauder
        case 33:
            return 125;
            // Jump Freighter
        // Jump Freighter
        case 34:
            return 175;
            // POS Small
        // POS Small
        case 35:
            return -20;
            // POS Medium
        // POS Medium
        case 36:
            return -15;
            // POS Large
        // POS Large
        case 37:
            return -10;
            // POS Modules
        // POS Modules
        case 38:
            return -25;
            // Indu Command
        // Indu Command
        case 39:
            return 155;
            // Strategic Cruiser
        // Strategic Cruiser
        case 40:
            return 33;
            // Infrastructure Modules
        // Infrastructure Modules
        case 41:
            return -5;
            // Territory Modules
        // Territory Modules
        case 42:
            return -4;
            // Prototype Exploration Ship
        // Prototype Exploration Ship
        case 43:
            return 2;
            // Customs Offices
        // Customs Offices
        case 44:
            return -12;
            // Unknown
        // Unknown
        default:
            return -50;
    }
}