Skip to content

Commit

Permalink
fix: disable sort for Leet tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kawre committed Feb 29, 2024
1 parent 7bd3e3d commit e73c1fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/leetcode/pickers/question-tabs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ return {
return log.warn("No questions opened")
end

table.sort(tabs, function(q1, q2)
local fid1, fid2 =
tonumber(q1.question.q.frontend_id), tonumber(q2.question.q.frontend_id)
return (fid1 and fid2) and fid1 < fid2 or fid1 ~= nil
end)
-- table.sort(tabs, function(q1, q2)
-- local fid1, fid2 =
-- tonumber(q1.question.q.frontend_id), tonumber(q2.question.q.frontend_id)
-- return (fid1 and fid2) and fid1 < fid2 or fid1 ~= nil
-- end)

pickers
.new(opts, {
Expand Down

0 comments on commit e73c1fe

Please sign in to comment.