diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2015-05-17 19:41:29 -0700 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2015-05-17 19:41:29 -0700 |
commit | a2e86d1a75b5c2116f545b3ae80dab61b7096b48 (patch) | |
tree | 8b34f728a6f596ecfa9d66859b730b74b473b8f2 | |
parent | 3cbedc17c805fb7a077e8b69fd3066aea7f3a38e (diff) | |
parent | 4de3b02082e64dcdd61703e1f47b4c6fc8ff0038 (diff) | |
download | natsort-a2e86d1a75b5c2116f545b3ae80dab61b7096b48.tar.gz |
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | docs/source/intro.rst | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -83,7 +83,7 @@ BSD-based system (like Mac OS X). You can sort signed floats (i.e. real numbers) using the ``realsorted``; this is useful in scientific data analysis. This was the default behavior of ``natsorted`` -for ``natsort`` version < 4.0.0. :: +for ``natsort`` version < 4.0.0: .. code-block:: python diff --git a/docs/source/intro.rst b/docs/source/intro.rst index d454094..eeed041 100644 --- a/docs/source/intro.rst +++ b/docs/source/intro.rst @@ -63,7 +63,9 @@ a useful hack. You can also perform locale-aware sorting (or "human sorting"), where the non-numeric characters are ordered based on their meaning, not on their -ordinal value; this can be achieved with the :func:`~humansorted` function:: +ordinal value; this can be achieved with the :func:`~humansorted` function: + +.. code-block:: python >>> a = ['Apple', 'Banana', 'apple', 'banana'] >>> natsorted(a) @@ -82,7 +84,7 @@ below before using the :func:`~humansorted` function. You can sort signed floats (i.e. real numbers) using the :func:`~realsorted`; this is useful in scientific data analysis. This was the default behavior of -:func:`~natsorted` for :mod:`natsort` version < 4.0.0. :: +:func:`~natsorted` for :mod:`natsort` version < 4.0.0: .. code-block:: python |