get sorts and windows