From 73953e9e5381dfc56f084fd405e2af7c757aace9 Mon Sep 17 00:00:00 2001 From: Daniel LaLiberte Date: Thu, 5 May 2016 18:16:20 -0400 Subject: [PATCH] Comment tweaks. --- generators/python/lists.js | 2 +- msg/messages.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/generators/python/lists.js b/generators/python/lists.js index e307db980..c1caf1f80 100644 --- a/generators/python/lists.js +++ b/generators/python/lists.js @@ -332,7 +332,7 @@ Blockly.Python['lists_sort'] = function(block) { ' "IGNORE_CASE": lambda s: str(s).lower()', ' }', ' keyv = keyFuncts[type]', - ' tmp_list = list(listv)', // clone the list + ' tmp_list = list(listv)', // Clone the list. ' return sorted(tmp_list, key=keyv, reverse=reversev)' ]); diff --git a/msg/messages.js b/msg/messages.js index 3c1aa5ca0..ab982d7ee 100644 --- a/msg/messages.js +++ b/msg/messages.js @@ -981,12 +981,9 @@ Blockly.Msg.LISTS_SORT_HELPURL = 'https://github.com/google/blockly/wiki/Lists#s Blockly.Msg.LISTS_SORT_TITLE = 'sort %1 %2 %3'; /// tooltip - See [https://github.com/google/blockly/wiki/Lists#sorting-a-list]. Blockly.Msg.LISTS_SORT_TOOLTIP = 'Sort a list.'; -/// sorting order or direction from low to high values -/// sorting order, or direction. -/// Ascending means low to high value for numeric, or A-Z for alphabetic. +/// sorting order or direction from low to high value for numeric, or A-Z for alphabetic. Blockly.Msg.LISTS_SORT_ORDER_ASCENDING = 'ascending'; -/// sorting order, or direction. -/// Descending means the opposite direction from ascending. +/// sorting order or direction from high to low value for numeric, or Z-A for alphabetic. Blockly.Msg.LISTS_SORT_ORDER_DESCENDING = 'descending'; /// sort by treating each item as a number. Blockly.Msg.LISTS_SORT_TYPE_NUMERIC = 'numeric';