Commit 65211b92 authored by Alex Rudenko's avatar Alex Rudenko Committed by Commit Bot

Sort pages in chrome://inspect/#pages

This CL adds sorting by name (asc) to the list of pages in
chrome://inspect/#pages. The underlying data source is
stored in a map and does not guarantee ordering.

Fixed: 1052403
Change-Id: If94bfc44c39b5a75d02fecaccc38d3e9f3ad8e49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2323601Reviewed-by: default avatarPeter Marshall <petermarshall@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792617}
parent ef7878b4
......@@ -161,6 +161,8 @@ function populateLocalTargets(data) {
removeChildren('service-workers-list');
removeChildrenExceptAdditional('others-list');
data.sort((a, b) => a.name.localeCompare(b.name));
for (let i = 0; i < data.length; i++) {
if (data[i].type === 'page') {
addToPagesList(data[i]);
......
Markdown is supported
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