cloudmr-ux 4.3.9 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,6 +59,12 @@ var CMRSelectUpload = function (props) {
59
59
  };
60
60
  var selectionDialog = _jsxs(Dialog, __assign({ open: open, onClose: handleClose }, { children: [_jsx(DialogTitle, { children: "Select or Upload" }), _jsxs(DialogContent, __assign({ sx: { width: 520 } }, { children: [_jsx(DialogContentText, __assign({ sx: { pl: 1, pr: 1, pb: 0 } }, { children: (uploading) ? "Please wait for the upload to finish." : "" })), _jsx(Box, __assign({ sx: { p: 1 } }, { children: _jsx(Select, { classNamePrefix: "cmr-select", isDisabled: uploading, options: props.fileSelection
61
61
  .filter(function (file) { return checkExtension(file.fileName, props.fileExtension); })
62
+ .sort(function (a, b) {
63
+ return a.fileName.localeCompare(b.fileName, undefined, {
64
+ sensitivity: 'base',
65
+ numeric: true
66
+ });
67
+ })
62
68
  .map(function (file) { return ({
63
69
  value: file.id,
64
70
  label: file.fileName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "4.3.9",
3
+ "version": "4.4.0",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",