test if it supports list.reverse
use remove_all as finalizer instead remove
Added sort support compatible with python version 2 and 3