screen: Use math.huge instead of 9999

This commit is contained in:
Emmanuel Lepage Vallee 2016-08-22 17:27:31 -04:00
parent f2bb0ab871
commit 01db39f5bb
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ function screen.object.get_tags(s, unordered)
-- Avoid infinite loop, + save some time -- Avoid infinite loop, + save some time
if not unordered then if not unordered then
table.sort(tags, function(a, b) table.sort(tags, function(a, b)
return (a.index or 9999) < (b.index or 9999) return (a.index or math.huge) < (b.index or math.huge)
end) end)
end end