BUGFIX: snap should be compatible with custom spaces

solvers are now sorted by its dependencies (custom spaces) before the
snap.