sort((a: any, b: any) => {
        const getOrder = (item: any): number => {
          if (typeof item === "string") {
            if (item === "d-day") return 1;
            else if (item === "now") return 0;
          } else if (item instanceof Date) {
            return 2;
          }
          return 3;
        };

        const orderA = getOrder(a.countDown.date);
        const orderB = getOrder(b.countDown.date);

        if (orderA < orderB) return -1;
        if (orderA > orderB) return 1;
        return 0;
      });

이렇게 타입스크립트에서 구현했는데, [
  {
    "id": "a726a54b-1d10-428c-a489-8c357b08d218",
    "profile": "public/7f6f4b59-05a4-4db3-8d0c-6b1c7c7eee5f.png",
    "name": "주르르 수정",
    "work": "아이돌",
    "countDown": {
      "title": "publicStart",
      "date": "now"
    }
  },
  {
    "id": "5940c957-031e-41bd-8b81-3f4a5ae6af18",
    "profile": "public/9ca92b70-8d61-4049-9045-9b24eb82c289.png",
    "name": "리즈",
    "work": "아이돌",
    "countDown": {
      "title": "publicStart",
      "date": "now"
    }
  },
  {
    "id": "6daef2be-6fa4-4830-ab30-d803f19920f0",
    "profile": "public/4adc60d7-ba79-4076-8fdd-a66cf51088dd.png",
    "name": "뷔",
    "work": "아이돌",
    "countDown": {
      "title": "publicStart",
      "date": "now"
    }
  },
  {
    "id": "ee4f5c4f-eeda-4579-a45a-f37d42092a94",
    "profile": "public/06e71c53-d680-4e13-98e7-e57cb20369c6.png",
    "name": "요아소비",
    "work": "뮤지션",
    "countDown": {
      "title": "publicStart",
      "date": "now"
    }
  },
  {
    "id": "240b55cd-ba29-424e-880d-7969c2d7c5e1",
    "profile": "public/cfde2dbf-c1c8-41ac-84ae-2cac73db06a3.png",
    "name": "블리맘",
    "work": "인플루언서",
    "countDown": {
      "title": "publicStart",
      "date": "d-day"
    }
  },
  {
    "id": "1fc366fd-da63-476b-a17e-780fc32b0552",
    "profile": "public/2eb6fd9b-b8eb-4514-a77d-45f9653915c7.png",
    "name": "강유민",
    "work": "배우",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "4f33d2b2-53ee-40c8-aa64-02de66942c2d",
    "profile": "public/ad93a53d-6c66-4771-9445-6a0a83418522.png",
    "name": "고세구",
    "work": "아이돌",
    "countDown": {
      "title": "publicStart",
      "date": 1712923200000
    }
  },
  {
    "id": "f2a9369f-0915-4c3a-baf6-1ab7e79bb699",
    "profile": "public/2a375f5c-a755-4992-bf10-9b67ef3858c3.png",
    "name": "비챤",
    "work": "아이돌",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "af675add-0c1a-40b9-95c5-e2bef96b9676",
    "profile": "public/4996843a-ec07-4953-8444-2a7e1a9817ec.png",
    "name": "임찌",
    "work": "인플루언서",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "899af680-8816-4008-8a22-20c545836f4c",
    "profile": "public/b0509d36-68e4-46bc-a14b-11c73822aaf3.png",
    "name": "프랑수아",
    "work": "크리에이터",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "a0599c6b-ee26-4841-b8da-af2252740b87",
    "profile": "public/ef825f63-f0a4-4688-8cab-a4d2ecf2d86b.png",
    "name": "징버거 수정",
    "work": "버츄얼",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "fc35bd63-8fe5-4d21-901d-05e659b802da",
    "profile": "public/d7dc3c33-53b1-48ea-9ff0-ed302b7f1926.png",
    "name": "김나연",
    "work": "크리에이터",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  },
  {
    "id": "834063f8-f2e8-4208-9e77-e5328a06a84c",
    "profile": "public/c652ab1f-ef84-4295-87e4-6fe68d458a85.png",
    "name": "아이유",
    "work": "뮤지션",
    "countDown": {
      "title": "prepared",
      "date": null
    }
  }
]
정렬이 되다 말았어. 강유민이 고세구보다 뒤에 있어야해. 함수 수정해줘