• This project
    • Loading...
  • Sign in

2020-2_open_source_sw_development_Han / Jaksimsamil

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • Jaksimsamil
  • jaksimsamil-page
  • src
  • lib
  • util
  • analyzeBJ.js
  • 송용우's avatar
    Update Home Layout · 93ed9711
    93ed9711
    송용우 authored 2020-06-23 13:15:13 +0900
analyzeBJ.js 399 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*
1. 날짜 순 정렬
2. 현재 날짜와의 차이
3. 최근 일주일간 푼 문제 수
4. 추천 문제
*/
exports.analyzeBJ = function (solvedBJ) {
  console.log(typeof solvedBJ);
  if (solvedBJ) {
    solvedBJ.sort(function (a, b) {
      return a.solvedDate > b.solvedDate
        ? -1
        : a.solvedDate < b.solvedDate
        ? 1
        : 0;
    });
    console.log(solvedBJ);
  }
};