Commit 5d876c42 authored by Becca Hughes's avatar Becca Hughes Committed by Commit Bot

Media Engagement: Fix bug when sorting by isHigh

Adds sort key handler for isHigh which will allow users to sort by
"isHigh" when using chrome://media-engagement.

BUG=792906

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I11db5ddf4843faca361eb9016535d582e6230fa5
Reviewed-on: https://chromium-review.googlesource.com/970584Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Commit-Queue: Becca Hughes <beccahughes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544693}
parent d12988d9
......@@ -80,7 +80,7 @@ function compareTableItem(sortKey, a, b) {
if (sortKey == 'visits' || sortKey == 'mediaPlaybacks' ||
sortKey == 'lastMediaPlaybackTime' || sortKey == 'totalScore' ||
sortKey == 'audiblePlaybacks' || sortKey == 'significantPlaybacks' ||
sortKey == 'highScoreChanges') {
sortKey == 'highScoreChanges' || sortKey == 'isHigh') {
return val1 - val2;
}
......
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