mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Comment tweaks.
This commit is contained in:
parent
8904fd1b9c
commit
73953e9e53
2 changed files with 3 additions and 6 deletions
|
@ -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)'
|
||||
]);
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue