Data sorting method, device, system, electronic device, and storage medium

By receiving user requests to obtain sorting methods and fields, generating sorting rule factors, and dynamically updating sorting rules, the problem of fixed and difficult-to-adjust sorting rules in the existing technology is solved, and flexibility and personalized adjustment of data sorting are achieved.

CN114418394BActive Publication Date: 2025-10-17BEIJING WUKONG TRAVEL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210060643.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2025-10-17
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

In the existing technology, data sorting rules are fixed and difficult to adjust dynamically, resulting in insufficient flexibility in front-end and back-end sorting methods and an inability to meet user personalized needs.

Method used

By receiving data requests from target users, obtaining custom configured sorting methods and sorting fields, generating sorting rule factors, supporting dynamic updating and modification of sorting rules, and associating the sorting method displayed on the front end with the sorting rules and fields configured in the back end, flexible adjustment of data sorting is achieved.

Benefits of technology

It realizes the dynamic adjustment of data sorting rules, improves the flexibility and personalization of sorting, meets the differentiated needs of different users, and simplifies the modification process of sorting rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114418394B_ABST
    Figure CN114418394B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data sorting method, device, system, electronic equipment and storage medium, and relates to the technical field of software. The method comprises the following steps: receiving a data request initiated by a target user, wherein the data request is used to request to sort to-be-sorted data according to a target sorting mode; obtaining to-be-sorted data, and sorting rules and sorting fields corresponding to the target sorting mode according to the data request; and sorting the to-be-sorted data according to the sorting rules and the sorting fields corresponding to the target sorting mode. According to the present disclosure, the sorting mode displayed on the front end is associated with the sorting rules and the sorting fields configured on the back end, so that the sorting rules of data sorting can be dynamically adjusted simply and conveniently, and the flexibility is stronger.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of software, and particularly relates to a data sorting method, device, system, electronic device and storage medium. BACKGROUND

[0002] With the rise of self-rental cars, the online car rental industry has developed greatly. After receiving the car rental request of a user, an online car rental company will obtain relevant data from the server according to the user's demand. These data are usually unordered data. In order to show the data to the user in a certain order, two solutions are provided in the related art. One solution is to sort the data on the server side, and the server sends the ordered data to the front end for direct display. The other solution is that the server sends unordered data to the front end, and the front end sorts and displays the data. Whether the data is sorted on the back end or the front end, the sorting rule is predetermined and fixed and cannot be dynamically adjusted.

[0003] For car rental list data, there are many fields involved in sorting, including but not limited to: price, distance, number of evaluations, score, rental times, whether to go to the door, custom sorting value, etc. Assuming that a comprehensive sorting rule is participated by multiple fields: first, sort by price from small to large, then sort by distance from near to far, then sort by rental times from large to small, and finally sort by score from high to low. This sorting rule is usually not changeable after being determined.

[0004] For back-end sorting, the comprehensive sorting rule needs to be encapsulated into a method or object, and the method or object is called to implement comprehensive sorting when used. If the sorting rule needs to be modified, the program must be changed. For front-end sorting, the comprehensive sorting rule needs to be written in the program. Since the version of the front end cannot be modified, if the sorting rule needs to be modified, a new front-end version needs to be released every time the sorting rule is modified, and the user can see the new sorting data only after updating the front-end version.

[0005] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY

[0006] The present disclosure provides a data sorting method, device, electronic device and computer readable storage medium, which at least partially overcomes the problem that the data sorting rule is difficult to modify in the related art.

[0007] Other characteristics and advantages of the present disclosure will become apparent from the following detailed description, or will be learned by practice of the present disclosure.

[0008] According to one aspect of the present disclosure, a data sorting method is provided, which comprises: receiving a data request initiated by a target user, wherein the data request is used to request sorting of to-be-sorted data in a target sorting manner; obtaining the to-be-sorted data and sorting rules and sorting fields corresponding to the target sorting manner according to the data request; and sorting the to-be-sorted data according to the sorting rules and sorting fields corresponding to the target sorting manner.

[0009] In some embodiments, before obtaining the to-be-sorted data and the sorting rules and sorting fields corresponding to the target sorting manner according to the data request, the method further comprises: obtaining a plurality of sorting manners configured by a user; and dynamically updating the sorting rules and sorting fields corresponding to each sorting manner.

[0010] In some embodiments, before dynamically updating the sorting rules and sorting fields corresponding to each sorting manner, the method further comprises: obtaining a plurality of sorting fields configured by a user; generating a sorting array according to the plurality of sorting fields configured by the user, wherein each element in the sorting array corresponds to a sorting field, and the subscript value of each element represents the position of the corresponding sorting field in the sorting array; generating a plurality of sorting rule factors according to the sorting array, wherein each sorting rule factor comprises a subscript value and a sorting identifier corresponding to a sorting field, and the sorting identifier comprises an ascending identifier or a descending identifier; and customizing the plurality of sorting rule factors to generate a plurality of sorting rules.

[0011] In some embodiments, after customizing the plurality of sorting rule factors to generate the plurality of sorting rules, the method further comprises: receiving a sorting rule modification instruction, wherein the sorting rule modification instruction is used to modify the sorting rule factors contained in any sorting rule and / or the sorting identifiers corresponding to the sorting fields in the sorting rule factors; and modifying the generated sorting rules according to the sorting rule modification instruction.

[0012] In some embodiments, after customizing the plurality of sorting rule factors to generate the plurality of sorting rules, the method further comprises: configuring user information corresponding to each sorting rule; and wherein obtaining the to-be-sorted data and the sorting rules and sorting fields corresponding to the target sorting manner according to the data request comprises: obtaining user information of the target user; and obtaining the to-be-sorted data and the sorting rules and sorting fields corresponding to the target sorting manner according to the user information of the target user and the data request.

[0013] In some embodiments, the to-be-sorted data is car rental list data.

[0014] According to another aspect of the present disclosure, a data sorting apparatus is also provided, which comprises: a data request module configured to receive a data request initiated by a target user, wherein the data request is configured to request sorting of to-be-sorted data according to a target sorting manner; a sorting rule acquisition module configured to acquire, according to the data request, the to-be-sorted data and sorting rules and sorting fields corresponding to the target sorting manner; and a data sorting module configured to sort the to-be-sorted data according to the sorting rules and sorting fields corresponding to the target sorting manner.

[0015] According to another aspect of the present disclosure, a data sorting system is also provided, which comprises: a client and a server; the client is configured to initiate a data request by a target user, wherein the data request is configured to request sorting of to-be-sorted data according to a target sorting manner; and the server is configured to receive the data request from the client, acquire, according to the data request, the to-be-sorted data and sorting rules and sorting fields corresponding to the target sorting manner, and sort the to-be-sorted data according to the sorting rules and sorting fields corresponding to the target sorting manner.

[0016] According to another aspect of the present disclosure, an electronic device is also provided, which comprises: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute any of the above data sorting methods via execution of the executable instructions.

[0017] According to another aspect of the present disclosure, a computer readable storage medium is also provided, which stores a computer program, and the computer program is executed by a processor to implement any of the above data sorting methods.

[0018] The data sorting method, apparatus, system, electronic device and storage medium provided by the embodiments of the present disclosure, after receiving a data request initiated by a target user to request sorting of to-be-sorted data according to a target sorting manner, acquire, according to the data request, the to-be-sorted data and sorting rules and sorting fields corresponding to the target sorting manner, and then sort the to-be-sorted data according to the sorting rules and sorting fields corresponding to the target sorting manner. In the embodiments of the present disclosure, by associating the sorting manner displayed in the front end with the sorting rules and sorting fields configured in the back end, the sorting rules of data sorting can be simply and conveniently dynamically adjusted, and the flexibility is stronger.

[0019] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0020] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure. It is apparent that the accompanying drawings depicted in the following description are only some embodiments of the present disclosure and that other drawings can be obtained by those of ordinary skill in the art without creative effort based on these drawings.

[0021] Figure 1 An application system architecture diagram in an embodiment of the present disclosure is shown.

[0022] Figure 2 A data sorting method flowchart in an embodiment of the present disclosure is shown.

[0023] Figure 3 A sorting rule dynamic updating flowchart in an embodiment of the present disclosure is shown.

[0024] Figure 4 A sorting rule configuration flowchart in an embodiment of the present disclosure is shown.

[0025] Figure 5 A sorting rule modification flowchart in an embodiment of the present disclosure is shown.

[0026] Figure 6 A flowchart of obtaining a difference sorting rule in an embodiment of the present disclosure is shown.

[0027] Figure 7 A flowchart of configuring a sorting field and a sorting rule in an embodiment of the present disclosure is shown.

[0028] Figure 8 A flowchart of a client user querying data in an embodiment of the present disclosure is shown.

[0029] Figure 9 A data sorting device schematic diagram in an embodiment of the present disclosure is shown.

[0030] Figure 10 A data sorting system schematic diagram in an embodiment of the present disclosure is shown.

[0031] Figure 11 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown.

[0032] Figure 12 A computer readable storage medium schematic diagram in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0033] Example implementations are now described in greater detail with reference to the drawings. Example implementations can be implemented in numerous ways, including as a process, an apparatus, a system, a device or a technique. In this specification, these implementations, or any portions thereof, are referred to as "examples." Any implementation described herein as an "example" is not necessarily to be construed as preferred or advantageous over other implementations.

[0034] In addition, the accompanying drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification. The drawings illustrate examples of the present disclosure and, as such, a change can be made in the size of some or all of the elements in the drawings. Like reference numerals can denote like elements throughout the drawings. Before explaining the examples of the present disclosure in detail, it is to be understood that the examples are not limited in their application to the details of design or to the constructions and the

[0035] The specific implementations of the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0036] Figure 1 An exemplary system architecture diagram to which the data sorting method in the embodiments of the present disclosure can be applied is shown. As shown, the system architecture can include a terminal device 101, a network 102, and a server 103. Figure 1

[0037] The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103, and can be a wired network or a wireless network.

[0038] ​Optionally, the wireless or wired networks described above use standard communications technologies and / or protocols. The network typically provides Internet or Intranet connectivity, but can also be a combination of networks, including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wired or wireless network, a private network, or a virtual private network (VPN). In some embodiments, the data exchanged over the network is represented using technologies and / or formats including, but not limited to, Hypertext Markup Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as the Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some links. In other embodiments, custom and / or proprietary data communications technologies and / or protocols can be used in place of, or in addition to, the ones described above.

[0039] The terminal device 101 can be various electronic devices, including but not limited to a smartphone, a tablet computer, a laptop computer, a desktop computer, a wearable device, an augmented reality device, a virtual reality device, etc.

[0040] Optionally, the application clients installed in different terminal devices 101 are the same, or are clients of the same type of application based on different operating systems. Depending on the terminal platform, the specific form of the application client can also be different, for example, the application client can be a mobile phone client, a PC client, etc.

[0041] The server 103 can be a server that provides various services, for example, a background management server that provides support for the device operated by the user using the terminal device 101. The background management server can analyze and process received request data, etc., and feed back the processing result to the terminal device.

[0042] Optionally, the server can be a standalone physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms. The terminal can be a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like, but is not limited thereto. The terminal and the server can be connected directly or indirectly through wired or wireless communication, which is not limited in the present application.

[0043] Those skilled in the art can know that, Figure 1 The number of terminal devices, networks and servers in the above system architecture is only illustrative, and any number of terminal devices, networks and servers can be provided according to actual needs. The present disclosure embodiments are not limited thereto.

[0044] Under the above system architecture, a data sorting method is provided in the present disclosure embodiments, which can be executed by any electronic device with computing processing capability. In some embodiments, the data sorting method provided in the present disclosure embodiments can be executed by the terminal device as shown in Figure 1 In other embodiments, the data sorting method provided in the present disclosure embodiments can be executed by the server as shown in Figure 1 .

[0045] Figure 2 A flow chart of a data sorting method in the present disclosure embodiments is shown in Figure 2 The data sorting method provided in the present disclosure embodiments includes the following steps:

[0046] S202, receiving a data request initiated by a target user, wherein the data request is used to request sorting of to-be-sorted data in a target sorting manner.

[0047] It should be noted that the data request in S202 above can be a request initiated by the target user through any kind of intelligent terminal device such as a mobile phone, a notebook computer, a computer, and the like. The data request can be a request directly initiated by the target user, or a request triggered when the target user initiates an application request. The to-be-sorted data in S202 above can be data directly specified by the user, or data filtered to meet a preset condition.

[0048] The data sorting method provided in the embodiments of the present disclosure can be applied to sorting any kind of service data, for example, commodity data of an online shopping platform, ticket data of a ticket purchase platform, and car rental data of a car rental platform. For ease of description, the data to be sorted is taken as car rental data in the embodiments of the present disclosure.

[0049] In some embodiments, a user interface for selecting a sorting mode can be provided to the user. When the user selects a certain sorting mode (i.e., a target sorting mode), the sorting rule and the sorting field corresponding to the target sorting mode are found, and the data to be sorted is sorted according to the found sorting rule and sorting field. Since the data sorting is implemented by associating the sorting mode displayed in the front end with the sorting rule and the sorting field configured in the back end in the embodiments of the present disclosure, the sorting rule and the sorting field can be dynamically adjusted by the back-end personnel, thereby realizing dynamic updating of the sorting rule.

[0050] In S204, the data to be sorted and the sorting rule and the sorting field corresponding to the target sorting mode are obtained according to the data request.

[0051] Since the target sorting mode currently used to sort the data to be sorted is specified in the data request initiated by the target user, the sorting rule and the sorting field corresponding to the target sorting mode can be directly found. It should be noted that the sorting rule in the embodiments of the present disclosure can involve a single or multiple sorting fields.

[0052] In order to provide differentiated data sorting results for different user groups, in some embodiments, the user information of the target user can be obtained according to the data request initiated by the target user, and then the data to be sorted can be obtained according to the user information of the target user. In this way, different data can be provided for different user groups, thereby avoiding a large amount of invalid data from participating in sorting.

[0053] Taking car rental as an example, there is a big difference between male users and female users in terms of vehicle color. Male users are less likely to choose pink vehicles, and therefore, when the car rental data is displayed to male users, the data of pink vehicles can be excluded.

[0054] In some embodiments, different sorting rules can be specified by using an array. For example, one array is used to represent one sorting rule, and the subscript of each element in the array represents one sorting field. The sorting order of each sorting field is specified by specifying the sorting identifier (ascending identifier or descending identifier) of each subscript.

[0055] For example, define an array sortArr; put the values of the five sorting fields a1, a2, a3, a4, and a5 in the array sortArr in order, and then the value of each sorting field in the array can be found by the element index value of the array sortArr:

[0056] a1 value = sortArr[0];

[0057] a2 value = sortArr[1];

[0058] a3 value = sortArr[2];

[0059] a4 value = sortArr[3];

[0060] a5 value = sortArr[4];

[0061] Define another object sortRule, which contains multiple sorting rules, such as recommended sorting, price sorting, distance sorting, and evaluation sorting. Assume that the recommended sorting is: first according to the ascending order of field a1 (recommended value), then according to the descending order of field a3, then according to the descending order of field a2, and finally according to the ascending order of field a5. Assume that the price sorting is: according to the ascending order of a2 (price), and for the same price, first according to the ascending order of field a1, then according to the descending order of field a3, and finally according to the ascending order of field a5. Use ASC to represent ascending order and DESC to represent descending order.

[0062] The corresponding index values of the values of the five sorting fields a1, a2, a3, a4, and a5 in the array sortArr are 0, 1, 2, 3, and 4, respectively. Then there are the following sorting rule factors:

[0063] a1 ascending order = {index = 0, sort = ASC};

[0064] a2 ascending order = {index = 1, sort = ASC};

[0065] a3 descending order = {index = 2, sort = DESC};

[0066] a4 descending order = {index = 3, sort = DESC};

[0067] a5 ascending order = {index = 4, sort = ASC};

[0068] In the embodiments of the present disclosure, the sorting field and the corresponding sorting rule factor can be preconfigured, support modification at any time, and can also support using different sorting rules according to different data requests, or support using different sorting rules for different users. The fields participating in sorting and the values corresponding to the fields are placed in an array, and the value of the element subscript of the array is used to obtain the value of each field. In the embodiments of the present disclosure, the value of the element subscript of an array and the sorting identifier are used as a sorting rule factor, and any combination of multiple sorting rule factors can define multiple sorting rules. Each sorting rule corresponds to a sorting mode, and the sorting mode is displayed on the front end for user selection. The sorting mode includes but is not limited to comprehensive sorting, recommended sorting, price sorting, and the like.

[0069] In S206, the data to be sorted is sorted according to the sorting rule corresponding to the target sorting mode and the sorting field.

[0070] After the data to be displayed to the target user and the sorting rule and sorting field corresponding to the target sorting mode specified by the target user are found according to the data request initiated by the target user, the data to be sorted can be sorted according to the found sorting rule and sorting field.

[0071] Since the sorting rule and the sorting field are dynamically adjustable in the embodiments of the present disclosure, the sorting rule and the sorting field corresponding to different sorting modes are dynamically updated. For a user, the sorting rule used for data sorting may be different at different times, even if the same sorting mode is selected.

[0072] It should be noted that in the embodiments of the present disclosure, the sorting rule and the sorting field can dynamically change, but the sorting mode is preconfigured on the front end and will not change at will. For the change of the sorting rule, the dynamic reduction of the sorting field or the dynamic modification of the sorting identifier in the sorting rule factor (modifying the ascending identifier to the descending identifier, or modifying the descending identifier to the ascending identifier) can be used.

[0073] In some embodiments, the sorting rule and the sorting field in the embodiments of the present disclosure are configured by background personnel through a management interface, or are prewritten in a program. Such configuration can take effect for all users, or can dynamically change according to different users or different requests, and different sorting rules are used for different users.

[0074] As can be seen from the above, the data sorting method provided in the embodiments of the present disclosure, after receiving a data request of sorting data according to a target sorting manner initiated by a target user, obtains the data to be sorted and the sorting rule and sorting field corresponding to the target sorting manner according to the data request, and then sorts the data to be sorted according to the sorting rule and sorting field corresponding to the target sorting manner. In the embodiments of the present disclosure, by associating the sorting manner displayed on the front end with the sorting rule and sorting field configured on the back end, the sorting rule of data sorting can be simply and conveniently dynamically adjusted, and the flexibility is stronger.

[0075] In some embodiments, before obtaining the data to be sorted and the sorting rule and sorting field corresponding to the target sorting manner according to the data request, the data sorting method provided in the embodiments of the present disclosure can further include the following steps as shown in Figure 3

[0076] S302, obtaining a plurality of sorting manners configured by customization;

[0077] S304, dynamically updating the sorting rule and sorting field corresponding to each sorting manner.

[0078] Through the above embodiments, for the plurality of sorting manners configured by customization, the sorting rule and sorting field corresponding to each sorting manner are dynamically updated, so that the dynamic adjustment of the data sorting rule can be realized.

[0079] In some embodiments, before associating the dynamically updated sorting rule and sorting field corresponding to each sorting manner, the data sorting method provided in the embodiments of the present disclosure can further include the following steps as shown in Figure 4

[0080] S402, obtaining a plurality of sorting fields configured by customization;

[0081] S404, generating a sorting array according to the plurality of sorting fields configured by customization, wherein each element in the sorting array corresponds to a sorting field, and the subscript value of each element represents the position of the corresponding sorting field in the sorting array;

[0082] S406, generating a plurality of sorting rule factors according to the sorting array, wherein each sorting rule factor includes a subscript value and a sorting identifier of a sorting field, and the sorting identifier includes an ascending identifier or a descending identifier;

[0083] S408, customizing combination of the generated plurality of sorting rule factors to generate a plurality of sorting rules.

[0084] ​​By the above embodiment, one sorting array is used to represent one sorting rule, the subscript of each element in the sorting array is used to represent the position of each sorting field, multiple sorting rule factors are configured and customized combination is performed to generate multiple sorting rules, and the association relationship between different sorting rules and sorting manners is specified to realize dynamic adjustment of the sorting rules.

[0085] In some embodiments, after the generated multiple sorting rule factors are customized and combined to generate multiple sorting rules, as shown in Figure 5 the data sorting method provided in the embodiment of the present disclosure can further include the following steps:

[0086] S502, a sorting rule modification instruction is received, wherein the sorting rule modification instruction is used to modify the sorting rule factor contained in any sorting rule and / or the sorting identifier corresponding to the sorting field in the sorting rule factor;

[0087] S504, the generated sorting rule is modified according to the sorting rule modification instruction.

[0088] Since each sorting rule contains one or more sorting rule factors, each sorting rule factor contains one sorting field and a corresponding sorting identifier, for any sorting rule, one or more sorting rule factors can be added in the sorting rule, or one or more sorting rule factors contained in the sorting rule can be deleted, and the sorting identifier corresponding to the sorting field in a certain sorting rule factor in the sorting rule can be modified, for example, the ascending identifier is modified to the descending identifier, or the descending identifier is modified to the ascending identifier.

[0089] In some embodiments, after the generated multiple sorting rule factors are customized and combined to generate multiple sorting rules, as shown in Figure 6 the data sorting method provided in the embodiment of the present disclosure can further include the following steps:

[0090] S602, user information corresponding to each sorting rule is configured.

[0091] In this embodiment, the above S204 can be implemented by the following steps:

[0092] S604, user information of a target user is obtained;

[0093] S606, according to the user information of the target user and the data request, the sorting rule and the sorting field corresponding to the target sorting manner are obtained.

[0094] In a specific implementation, user information of different users can be collected, an artificial intelligence model capable of predicting user preference information is trained through machine learning, and then user information of a target user is input into the artificial intelligence model to predict user preference information of the target user, and then data meeting the preference of the target user is found as to-be-ordered data, and / or an ordering rule and an ordering field meeting the preference of the target user are found, so as to sort the to-be-ordered data by using the corresponding ordering rule and ordering field, and an effect of providing personalized ordering data or ordering rules to different users is achieved.

[0095] According to the embodiments of any one of the above embodiments of the present disclosure, the to-be-ordered data in the embodiments of the present disclosure can be, but is not limited to, car rental list data displayed in a car rental application.

[0096] Figure 7 A flowchart for configuring an ordering field and an ordering rule in the embodiments of the present disclosure is shown in FIG. 8, which includes the following steps: Figure 7

[0097] S702, defining an ordering field: supporting adding and deleting; defining a position of the ordering field in an ordering array;

[0098] S704, defining an ordering rule factor: including an element index value of the ordering array and an ordering identifier;

[0099] S706, setting an ordering rule: combining the ordering rule factors in order according to business requirements to generate a plurality of ordering rules

[0100] S708, setting an ordering manner: each ordering rule corresponds to an ordering manner; the ordering manner is displayed on a front end for a user to select.

[0101] Figure 8 A flowchart for configuring an ordering field and an ordering rule in the embodiments of the present disclosure is shown in FIG. 8, which includes the following steps: Figure 8

[0102] S802, a user initiates a data request through a front end, and the data request includes a car use location, a car use time, and an ordering manner, etc.

[0103] S804, a server receives request data from the front end;

[0104] S806, according to the data request of the front end, all business data meeting the conditions are queried; an ordering rule and an ordering field are queried from a configuration file or obtained according to user information

[0105] S808, values corresponding to the ordering field are put into the ordering array in order; a matching ordering rule is dynamically selected according to the ordering manner selected by the user;

[0106] ​​S810, sorting the business data according to the sorting rule and the sorting array data.

[0107] Based on the same inventive concept, the present disclosure also provides a data sorting device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0108] Figure 9 A schematic diagram of a data sorting device according to an embodiment of the present disclosure is shown. Figure 9 As shown, the device includes: a data request module 91, a sorting rule acquisition module 92 and a data sorting module 93.

[0109] Among them, the data request module 91 is used to receive the data request initiated by the target user, wherein the data request is used to request to sort the data to be sorted according to the target sorting method; the sorting rule acquisition module 92 is used to obtain the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method according to the data request; the data sorting module 93 is used to sort the data to be sorted according to the sorting rules and sorting fields corresponding to the target sorting method.

[0110] It should be noted that the data request module 91, sorting rule acquisition module 92, and data sorting module 93 described above correspond to S202 to S206 in the method embodiment. The examples and application scenarios implemented by these modules and corresponding steps are the same, but are not limited to the contents disclosed in the method embodiment described above. It should be noted that these modules, as part of the apparatus, can be executed in a computer system, such as a set of computer-executable instructions.

[0111] Furthermore, in some embodiments, Figure 9 As shown, the data sorting device provided in the embodiment of the present disclosure may further include: a sorting rule dynamic update module 94, which is used to obtain multiple sorting methods of custom configuration; and dynamically update the sorting rules and sorting fields corresponding to each sorting method.

[0112] Furthermore, in some embodiments, Figure 9As shown, the data sorting apparatus provided in the embodiments of the present disclosure can further include: a sorting rule configuration module 95, configured to: obtain a plurality of sorting fields configured by a user; generate a sorting array according to the plurality of sorting fields configured by the user, wherein each element in the sorting array corresponds to a sorting field, and the subscript value of each element represents the position of the corresponding sorting field in the sorting array; generate a plurality of sorting rule factors according to the sorting array, wherein each sorting rule factor includes a subscript value corresponding to a sorting field and a sorting identifier, and the sorting identifier includes an ascending identifier or a descending identifier; and perform custom combination on the plurality of generated sorting rule factors to generate a plurality of sorting rules.

[0113] Further, in some embodiments, as Figure 9 As shown, the data sorting apparatus provided in the embodiments of the present disclosure can further include: a sorting rule modification module 96, configured to: receive a sorting rule modification instruction, wherein the sorting rule modification instruction is used to modify the sorting rule factor included in any one of the sorting rules and / or the sorting identifier corresponding to the sorting field in the sorting rule factor; and modify the generated sorting rules according to the sorting rule modification instruction.

[0114] In some embodiments, the sorting rule configuration module 95 in the data sorting apparatus provided in the embodiments of the present disclosure is further configured to configure the user information corresponding to each sorting rule. In this embodiment, the sorting rule obtaining module 92 is further configured to: obtain the user information of a target user; and obtain the sorting data and the sorting rule and sorting field corresponding to the target sorting mode according to the user information of the target user and the data request.

[0115] In some embodiments, the sorting data is car rental list data.

[0116] Based on the same inventive concept, the embodiments of the present disclosure further provide a data sorting system, as described in the following embodiments. Since the principle of solving problems of the system embodiments is similar to that of the above-mentioned method embodiments, the implementation of the system embodiments can be referred to the implementation of the above-mentioned method embodiments, and the repeated parts will not be described here.

[0117] Figure 10 As shown in FIG. 1, a schematic diagram of a data sorting system according to an embodiment of the present disclosure is shown. Figure 10 As shown, the system includes: a client 1001 and a server 1002.

[0118] The client 1001 is configured to initiate a data request by a target user, where the data request is used to request sorting of to-be-sorted data according to a target sorting manner; and the server 1002 is configured to receive the data request from the client, and obtain the to-be-sorted data and a sorting rule and a sorting field corresponding to the target sorting manner according to the data request, and sort the to-be-sorted data according to the sorting rule and the sorting field corresponding to the target sorting manner.

[0119] In some embodiments, the server 1002 is further configured to: obtain a plurality of sorting manners configured by a user; and dynamically update the sorting rule and the sorting field corresponding to each sorting manner.

[0120] In some embodiments, the server 1002 is further configured to: obtain a plurality of sorting fields configured by a user; generate a sorting array according to the plurality of sorting fields configured by the user, where each element in the sorting array corresponds to a sorting field, and the subscript value of each element represents the position of the corresponding sorting field in the sorting array; generate a plurality of sorting rule factors according to the sorting array, where each sorting rule factor includes a subscript value and a sorting identifier corresponding to a sorting field, and the sorting identifier includes an ascending identifier or a descending identifier; and generate a plurality of sorting rules by customizing combination of the plurality of sorting rule factors.

[0121] In some embodiments, the server 1002 is further configured to: receive a sorting rule modification instruction, where the sorting rule modification instruction is used to modify the sorting rule factor included in any sorting rule and / or the sorting identifier corresponding to the sorting field in the sorting rule factor; and modify the generated sorting rules according to the sorting rule modification instruction.

[0122] In some embodiments, the server 1002 is further configured to: configure user information corresponding to each sorting rule; and obtain the to-be-sorted data and the sorting rule and the sorting field corresponding to the target sorting manner according to the data request, including: obtaining user information of the target user; and obtaining the to-be-sorted data and the sorting rule and the sorting field corresponding to the target sorting manner according to the user information of the target user and the data request.

[0123] In the system embodiment of any one of the embodiments of the present disclosure, the to-be-sorted data can be, but is not limited to, car rental list data displayed in a car rental application software.

[0124] Those skilled in the art can understand that each aspect of the present disclosure can be implemented as a system, a method or a program product. Therefore, each aspect of the present disclosure can be specifically implemented as a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, which can be collectively referred to as "circuitry", "module" or "system".

[0125] The electronic device 1100 according to this embodiment of the present disclosure will be described below with reference to Figure 11 FIG. 1. Figure 11 The electronic device 1100 shown is merely an example and should not be taken as limiting the scope of the functionality or use of embodiments of the present disclosure.

[0126] As shown in Figure 11 The electronic device 1100 is in the form of a general computing device. Components of the electronic device 1100 can include, but are not limited to, the at least one processing unit 1110 described above, the at least one storage unit 1120 described above, and a bus 1130 that connects different system components, including the storage unit 1120 and the processing unit 1110.

[0127] The storage unit stores program code that can be executed by the processing unit 1110, so that the processing unit 1110 performs the steps described in the above "Exemplary Method" section according to various exemplary embodiments of the present disclosure. For example, the processing unit 1110 can perform the following steps of the above method embodiments: receiving a data request initiated by a target user, wherein the data request is used to request sorting of to-be-sorted data according to a target sorting manner; obtaining, according to the data request, the to-be-sorted data and a sorting rule and a sorting field corresponding to the target sorting manner; and sorting the to-be-sorted data according to the sorting rule and the sorting field corresponding to the target sorting manner.

[0128] The storage unit 1120 can include a readable medium in the form of volatile storage such as a random access memory (RAM) 11201 and / or cache memory 11202, and can further include a read-only memory (ROM) 11203.

[0129] The storage unit 1120 can further include program / utility 11204 having a set of programs / modules 11205, including operating system, one or more applications, other programs, and program data, each or some combination thereof, which can include implementation of a network environment.

[0130] The bus 1130 can be representative of one or more of several types of bus structures, including a storage bus or bus controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.

[0131] Electronic device 1100 may also communicate with one or more external devices 1140 (e.g., a keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1100, and / or any device that enables electronic device 1100 to communicate with one or more other computing devices (e.g., a router, modem, etc.). Such communication may occur via input / output (I / O) interface 1150. Furthermore, electronic device 1100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 1160. As shown, network adapter 1160 communicates with other modules of electronic device 1100 via bus 1130. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with electronic device 1100, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0132] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0133] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided. The computer-readable storage medium may be a readable signal medium or a readable storage medium. Figure 12 A schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. Figure 12 As shown, the computer-readable storage medium 1200 stores a program product capable of implementing the above-mentioned method of the present disclosure. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is executed on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section above.

[0134] More specific examples of the computer-readable storage medium in the present disclosure can include but are not limited to an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0135] In the present disclosure, a computer readable storage medium can include a data signal carrying the readable program code in a baseband or in a carrier wave. Such a propagated data signal can take a wide variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. A computer readable storage medium can also be any non-transitory computer readable medium which can be considered to be a tangible storage medium. A computer readable storage medium can be any medium that can be read by a machine learner, e.g., a computer. The computer readable storage medium can include a hard disk, a floppy disk, a magnetic disk, an optical disk, a compact disk, a CD-ROM, a DVD, a RAM, a ROM, a FLASH memory, a portable computer diskette, a hard disk drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0136] Optionally, program code embodied on a computer readable storage medium can be transmitted by any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0137] In an implementation, the program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., or conventional procedural programming languages, such as the "C" programming language, or similar programming languages. The program code can execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider.

[0138] It should be noted that, although several modules or units of a device for action execution are mentioned in the above detailed description, such a division is not mandatory. Indeed, features and functionalities of two or more modules or units described above can be embodied in one module or unit according to embodiments of the present disclosure. Conversely, features and functionalities of one module or unit described above can be further divided into multiple modules or units embodied.

[0139] Moreover, although individual steps of the methods in the present disclosure are described in a particular order in the drawings, this is not required or implied, nor is it necessary to perform all of the steps shown to achieve the desired result. Additionally or alternatively, certain steps can be omitted, combined into a single step, performed in a different order, broken down into multiple steps, and / or the like.

[0140] From the above description of the embodiments, those skilled in the art will readily perceive that the example embodiments described herein can be implemented by software and / or by software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash disk, a mobile hard disk, or the like) or a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the methods according to the embodiments of the present disclosure.

[0141] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure following the general principles thereof and including such departures from the present disclosure that come within known use or custom in the art to which the present disclosure pertains. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A data sorting method, characterized in that: include: Receiving a data request initiated by a target user, wherein the data request is used to request sorting of the data to be sorted according to a target sorting method; According to the data request, the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method are obtained; Sort the data to be sorted according to the sorting rules and sorting fields corresponding to the target sorting method; The target sorting method is selected by the target user from multiple sorting methods displayed on the front end. Each sorting method displayed on the front end is associated with a sorting rule configured in the back end and supports dynamic adjustment. The sorting rule is represented by a sorting array. Each element in the sorting array corresponds to a sorting field. The subscript value of each element represents the position of the corresponding sorting field in the sorting array. The sorting rule includes: one or more sorting rule factors, each sorting rule factor includes a subscript value corresponding to a sorting field and a sorting identifier. The sorting identifier includes: an ascending identifier or a descending identifier. Before sorting the data to be sorted according to the sorting rules and sorting fields corresponding to the target sorting method, the method further includes: obtaining user information of the target user; inputting the user information of the target user into a trained artificial intelligence model for predicting user preference information to predict the user preference information of the target user; and searching for data that meets the target user preference information as the data to be sorted; The artificial intelligence model is further used to predict a sorting rule and a sorting field that conforms to the user preference information; the method further comprises: sorting the data to be sorted using the sorting rule and sorting field predicted by the artificial intelligence model; Before obtaining the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method according to the data request, the method further includes: obtaining multiple custom-configured sorting methods; dynamically updating the sorting rules and sorting fields corresponding to each sorting method; Among them, before dynamically updating the sorting rules and sorting fields corresponding to each sorting method for association, the method also includes: obtaining multiple sorting fields of custom configuration; generating a sorting array based on the multiple sorting fields of custom configuration; generating multiple sorting rule factors based on the sorting array; custom combining the generated multiple sorting rule factors to generate multiple sorting rules; receiving a sorting rule modification instruction, wherein the sorting rule modification instruction is used to modify the sorting rule factors contained in any sorting rule and / or the sorting identifier corresponding to the sorting field in the sorting rule factor; and modifying the generated sorting rule according to the sorting rule modification instruction.

2. The data sorting method according to claim 1, characterized in that: After customizing and combining the generated multiple sorting rule factors to generate multiple sorting rules, the method further includes: configuring user information corresponding to each sorting rule; Among them, according to the data request, obtaining the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method includes: obtaining the user information of the target user; according to the user information of the target user and the data request, obtaining the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method.

3. The data sorting method according to claim 1 or 2, characterized in that: The data to be sorted is car rental list data.

4. A data sorting device, characterized in that: include: A data request module is configured to receive a data request initiated by a target user, wherein the data request is used to request that the data to be sorted be sorted according to a target sorting method; A sorting rule acquisition module is used to acquire the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method according to the data request; A data sorting module is used to sort the data to be sorted according to the sorting rules and sorting fields corresponding to the target sorting method; The target sorting method is selected by the target user from multiple sorting methods displayed on the front end. Each sorting method displayed on the front end is associated with a sorting rule configured in the back end and supports dynamic adjustment. The sorting rule is represented by a sorting array. Each element in the sorting array corresponds to a sorting field. The subscript value of each element represents the position of the corresponding sorting field in the sorting array. The sorting rule includes: one or more sorting rule factors, each sorting rule factor includes a subscript value corresponding to a sorting field and a sorting identifier. The sorting identifier includes: an ascending identifier or a descending identifier. The data sorting module is further configured to: obtain user information of the target user; input the user information of the target user into a trained artificial intelligence model for predicting user preference information to predict the user preference information of the target user; and search for data that meets the target user preference information as data to be sorted; The artificial intelligence model is further used to predict the sorting rules and sorting fields that conform to the user preference information; the data sorting module is further used to sort the data to be sorted using the sorting rules and sorting fields predicted by the artificial intelligence model; Wherein, the device further includes: Sorting rule dynamic update module, used to obtain multiple custom configured sorting methods; dynamically update the sorting rules and sorting fields corresponding to each sorting method; A sorting rule configuration module is used to obtain multiple sorting fields of a custom configuration; generate a sorting array based on the multiple sorting fields of the custom configuration; and generate multiple sorting rule factors based on the sorting array; The sorting rule modification module is used to receive a sorting rule modification instruction, wherein the sorting rule modification instruction is used to modify the sorting rule factor contained in any sorting rule and / or the sorting identifier corresponding to the sorting field in the sorting rule factor; and modify the generated sorting rule according to the sorting rule modification instruction.

5. A data sorting system, characterized in that: include: Client and server; The client is used for a target user to initiate a data request, wherein the data request is used to request that the data to be sorted be sorted according to a target sorting method; The server is configured to receive a data request from a client, obtain the data to be sorted and the sorting rules and sorting fields corresponding to the target sorting method according to the data request, and sort the data to be sorted according to the sorting rules and sorting fields corresponding to the target sorting method; The target sorting method is selected by the target user from multiple sorting methods displayed on the front end. Each sorting method displayed on the front end is associated with a sorting rule configured in the back end and supports dynamic adjustment. The sorting rule is represented by a sorting array. Each element in the sorting array corresponds to a sorting field. The subscript value of each element represents the position of the corresponding sorting field in the sorting array. The sorting rule includes: one or more sorting rule factors, each sorting rule factor includes a subscript value corresponding to a sorting field and a sorting identifier. The sorting identifier includes: an ascending identifier or a descending identifier. The server is further configured to: obtain user information of the target user; input the user information of the target user into a trained artificial intelligence model for predicting user preference information to predict the user preference information of the target user; and search for data that meets the target user preference information as data to be sorted; The artificial intelligence model is further used to predict the sorting rules and sorting fields that conform to the user preference information; the server is further used to sort the data to be sorted using the sorting rules and sorting fields predicted by the artificial intelligence model; The server is further configured to: obtain multiple custom-configured sorting methods; dynamically update the sorting rules and sorting fields corresponding to each sorting method; The server is further configured to: obtain multiple custom-configured sorting fields; generate a sorting array based on the custom-configured multiple sorting fields; generate multiple sorting rule factors based on the sorting array; perform custom combinations on the generated multiple sorting rule factors to generate multiple sorting rules; receive a sorting rule modification instruction, wherein the sorting rule modification instruction is used to modify the sorting rule factors contained in any sorting rule and / or the sorting identifier corresponding to the sorting field in the sorting rule factor; and modify the generated sorting rule according to the sorting rule modification instruction.

6. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to execute the data sorting method according to any one of claims 1 to 3 by executing the executable instructions.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data sorting method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Information sorting method and device

    CN105786868A

  • Data sorting method and device for workflow system

    CN110852700A