Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions script/cli/doc/export.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ function export.positionOf(rowcol)
end

function export.sortDoc(a,b)
if a.name ~= b.name then
if a.name and b.name and a.name ~= b.name then
return a.name < b.name
end

if a.file ~= b.file then
if a.file and b.file and a.file ~= b.file then
return a.file < b.file
end

Expand Down
Loading