Comment tweaks.

This commit is contained in:
Daniel LaLiberte 2016-05-05 18:16:20 -04:00
parent 8904fd1b9c
commit 73953e9e53
2 changed files with 3 additions and 6 deletions

View file

@ -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)'
]);

View file

@ -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';