Commit 49f31680 authored by Jonathan Kew's avatar Jonathan Kew
Browse files

Bug 1663040 - Sort available paper sizes by name for the menu in the print UI. r=jwatt, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D89300
parent 196a43c4
......@@ -810,7 +810,9 @@ const PrintSettingsViewProxy = {
return "default";
case "paperSizes":
return Object.values(this.availablePaperSizes).map(paper => {
return Object.values(this.availablePaperSizes)
.sort((a, b) => a.name.localeCompare(b.name))
.map(paper => {
return {
name: paper.name,
value: paper.name,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment