Class: SortField

SortField

new SortField(name, caseInsensitive, descending, numeric)

소팅을 수행할 필드를 정의하는 클래스입니다.

Name Type Description
name string

필드명.

caseInsensitive boolean

대소문자 구분 여부.

descending boolean

역순 정렬 여부.

numeric object

Tells the comparitor whether to compare sort items as numbers, instead of alphabetically.

Members

caseInsensitiveboolean

소팅시 대소문자를 구분할 지 여부.

Default Value:
  • false

descendingboolean

소팅시 역순으로 할 지 여부.

Default Value:
  • false

namestring

소팅할 필드명.

numericobject

숫자로 처리하여 비교할 지 여부.

true로 설정하면 기본으로 숫자로 비교하게 됩니다. 각 항목의 데이타는 비교 전에 숫자로 변환됩니다.

false로 설정하면 기본으로 문자열로 비교하게 됩니다. 각 항목의 데이타는 비교 전에 문자열로 변환됩니다.

null로 설정하면 첫번째 데이터 항목을 조사하여 숫자인지 문자인지 조사하여 그에 따라 비교하게 됩니다.

Default Value:
  • null