#ifndef PYTHONIC_INCLUDE_BUILTIN_SORTED_HPP #define PYTHONIC_INCLUDE_BUILTIN_SORTED_HPP #include "pythonic/include/types/list.hpp" #include "pythonic/include/utils/functor.hpp" PYTHONIC_NS_BEGIN namespace builtins { template types::list::type::iterator>::value_type>::type> sorted(Iterable &&seq); template types::list::type::iterator>::value_type>::type> sorted(Iterable &&seq, Key const &key, bool reverse = false); template types::list::type::iterator>::value_type>::type> sorted(Iterable &&seq, types::none_type const &key, bool reverse = false); DEFINE_FUNCTOR(pythonic::builtins, sorted); } PYTHONIC_NS_END #endif