Skip to content

Commit

Permalink
fixes #122
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Oct 9, 2020
1 parent b76b112 commit 457c999
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nbs/01_foundation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,7 @@
"metadata": {},
"outputs": [],
"source": [
"#export\n",
"def sorted_ex(iterable, key=None, reverse=False):\n",
" \"Like `sorted`, but if key is str use `attrgetter`; if int use `itemgetter`\"\n",
" if isinstance(key,str): k=lambda o:getattr(o,key,0)\n",
Expand Down

0 comments on commit 457c999

Please # to comment.