sort   10987

« earlier    

MixItUp
A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more...
Javascript  library  sort  filter 
7 days ago by rainbowunicorn
Sort lines | Vim Tips Wiki | FANDOM powered by Wikia
Tip 1166 Printable Monobook Previous Next created 2006 · complexity basic · author Robert Stovall · version 7.0 Vim has a very powerful built-in sort utility, or it can interface with an external one. In order to keep only unique lines in Vim, you would: :{range}sort u Yes, it's that simple. You...
linux  sort  guides 
16 days ago by gfarnell
[Python-Dev] python 3 niggle: None < 1 raises TypeError
None is special in Python and has always (and intentionally) sorted
before any other object. In data processing and elsewhere in Python
programming, it's used to signal: no value available.

Python 3 breaks this notion by always raising an exception when
using None in an ordered comparison, making it pretty much useless
for the above purpose.

Yes, there are ways around this, but none of them are intuitive.

Here's a particularly nasty case:

>>> l = [(1, None), (2, None)]
>>> l.sort()
>>> l
[(1, None), (2, None)]

>>> l = [(1, None), (2, None), (3, 4)]
>>> l.sort()
>>> l
[(1, None), (2, None), (3, 4)]

>>> l = [(1, None), (2, None), (3, 4), (2, 3)]
>>> l.sort()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: int() < NoneType()
python  python3  none  sort  unorderable 
4 weeks ago by christianmlong
Example of using django-sorting, django-filter and django-pagination together · GitHub
{% load pagination_tags %}
{% load sorting_tags %}

{% block body %}

{% autosort filter.qs as sorted_objects %}
{% autopaginate sorted_objects 10 as object_list %}

{% for object in object_list %}
{{ object }}
{% endfor %}

{% paginate %}

{% endblock %}

{% block sidebar %}
<div class="filter">
<h2>Sort by</h2>
<ul>
<li>{% anchor firstfield "First Field" %}</li>
<li>{% anchor otherfield "Other Field" %}</li>
</ul>
<form action="" method="get" class="filter">
{{ filter.form.as_p }}
</form>
</div>
{% endblock %}
django  django-pagination  django-filter  django-sorting  sort  filter  paginate  example  python3 
5 weeks ago by christianmlong
Git: List git branches, sort by (and show) date - Stack Overflow
Nice command for listing branches ordered by most recently used:

git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'

I could use this output when pruning my branch list.
git  log  branch  sort  date  recent 
6 weeks ago by nelstrom
Parallel Merge Sort in Java – Hacker Noon
Let’s implement a parallel merge sort algorithm in Java using ForkJoinPool.
mergesort  parallel  implementation  java  sort  algorithm  concurrent  concurrency 
6 weeks ago by gilberto5757
Sort Your Music (Spotify)
Sort your Spotify playlists by any of a wide range of musical attributes such as tempo, loudness, valence, energy, danceability, popularity and more.
spotify  sort  playlist 
6 weeks ago by blumenberg

« earlier    

related tags

!!!awesome  'any  admin  algo  algorithm  algorithms  android  application  array  arrays  attribute  avx2  back  bash  be  bedfile  bedfiles  best  better  bigo  binary  bioinformatics  blog  brady  branch  bubble  bucket  by  card  catalog  categories  certain  cli  clipboard  co-design  collection  color  column  columns  comb  comm  command  compare  compete  competition  complexity  computer  computeshader  concurrency  concurrent  control  counting  create  creation  cs  cuda  dag  data-science  data  datatables  date  delia’s  demo  dependencies  derek  descending  dev  development  diagram  diff  diigo  dimensions  discrimination  distributed-system  distributed  django-filter  django-pagination  django-sorting  django  docs  documentation  drag  drive  drop  dynamic  ecommerce  editor  education  elo  england  event  evernote  example  excel  excess  exercise  extra  fashion  felt  fiction  file  files  filter  find  floss  football  forum  fuzzy  gallery  garoppolo  generate  generation  geography  geolocation  geometry  gist  git  github  global  go  golang  google  googledocs  gpgpu  gpu  grep  group  gui  guide  guides  gulp  has  he  hilbert  hilbert_curve  howto  html5  ia  iconic  id  ifttt  ikea  implementation  in  insertion  interactive  is  items  java  javascript  jimmy  joins  jquery  js  jumpmenu  kubectl  lastchange  learning  lexicographical  library  line  linux  liquid  list  listing  lists  log  mapping  match  matchmaking  mathematics  mcinnes:  menu  merge  mergesort  mmm  mssql  multiple  multiprocessing  new  nil  node  none  number  numbers  numpy  of  opensource  order  ordering  organize  out'  package  paginate  pagination  pandas  parallel  parallelism  parse  participant  people  performance  peters  photos  playlist  plugin  pocket  post  postcss  powerapps  preference  price  product  products  programming  python  python2.7  python3  random  ranking  rating  recent  reduce  reducing  ref  reference  regex  reverse  rfap  rowversion  ruby  scan  screencast  scss  search  selling  sequence  sheets  shell  shellscripting  shopify  shuffle-hash  solution  sortable  sortby  sorted  sorting  spark  split  spotify  spreadsheet  sql  stable  stackoverflow  stamped  statistics  table  tech  template  terminal  testing  text  textprocessing  than  the  theme  tim  timestamp  timsort  tipsandtricks  title  to  tolearn  tom  tool  tools  topologicalsort  toread  total  totry  tounderstand  tree  tricks  tutorial  types  ui  uniq  unique  university  unorderable  usability  uuid  ux  validation  values  video  vim  visualization  was  wc  webdev  wordpress  youtube    ’90s 

Copy this bookmark:



description:


tags: