Add assertion for sorting by title