/usr/share/octave/packages/strings-1.1.0/strsort.m is in octave-strings 1.1.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Author: Paul Kienzle <pkienzle@users.sf.net>
## This program is granted to the public domain.
## -*- texinfo -*-
## @deftypefn {Function File} {[@dots{}] =} strsort (@dots{})
## Overloads the sort function to operate on strings.
##
## @seealso {sort}
## @end deftypefn
# PKG_ADD dispatch ("sort", "strsort", "string")
function [sorted,idx] = strsort(string,varargin)
if nargout == 2
[s,idx] = sort(toascii(string),varargin{:});
else
s = sort(toascii(string),varargin{:});
endif
sorted = char(s);
endfunction
|