group research methods: array and hash sorting methods